diff options
Diffstat (limited to 'source4/scripting/ejs/smbcalls_nss.c')
-rw-r--r-- | source4/scripting/ejs/smbcalls_nss.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source4/scripting/ejs/smbcalls_nss.c b/source4/scripting/ejs/smbcalls_nss.c index a804c14b7f..6111ed57c2 100644 --- a/source4/scripting/ejs/smbcalls_nss.c +++ b/source4/scripting/ejs/smbcalls_nss.c @@ -141,10 +141,7 @@ static int ejs_getgrgid(MprVarHandle eid, int argc, struct MprVar **argv) */ static int ejs_nss_init(MprVarHandle eid, int argc, struct MprVar **argv) { - struct MprVar *nss; - mpr_Return(eid, mprObject("nss")); - - nss = ejsGetReturnValue(eid); + struct MprVar *nss = mprInitObject(eid, "nss", argc, argv); mprSetCFunction(nss, "getpwnam", ejs_getpwnam); mprSetCFunction(nss, "getpwuid", ejs_getpwuid); |