summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs/smbcalls_reg.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-21 18:21:44 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-21 18:21:44 +0100
commite11c61bc5cd487dce06fc38bb0ee8c4e24b04e8c (patch)
tree5e7dd6c56c9886c4f8530faf92293d4a22684215 /source4/scripting/ejs/smbcalls_reg.c
parent3c20b3eebafe46127a7b69cca573c6a128f8de89 (diff)
downloadsamba-e11c61bc5cd487dce06fc38bb0ee8c4e24b04e8c.tar.gz
samba-e11c61bc5cd487dce06fc38bb0ee8c4e24b04e8c.tar.bz2
samba-e11c61bc5cd487dce06fc38bb0ee8c4e24b04e8c.zip
Introduce mprLpCtx() similar to mprMemCtx() for loadparm_context used by
all EJS code. (This used to be commit 184988866fe8e740f58e3683eefcaa70f8b51d11)
Diffstat (limited to 'source4/scripting/ejs/smbcalls_reg.c')
-rw-r--r--source4/scripting/ejs/smbcalls_reg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/ejs/smbcalls_reg.c b/source4/scripting/ejs/smbcalls_reg.c
index 30e5357cfb..e20d91ad2e 100644
--- a/source4/scripting/ejs/smbcalls_reg.c
+++ b/source4/scripting/ejs/smbcalls_reg.c
@@ -70,7 +70,7 @@ static int ejs_reg_open(MprVarHandle eid, int argc, struct MprVar **argv)
struct registry_context *rctx;
WERROR error;
- error = reg_open_samba(mprMemCtx(), &rctx, global_loadparm, NULL, NULL);
+ error = reg_open_samba(mprMemCtx(), &rctx, mprLpCtx(), NULL, NULL);
SMB_ASSERT(W_ERROR_IS_OK(error));
mprSetPtrChild(reg, "registry", rctx);