1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-28 03:33:13 +03:00

r26338: Fix parameter, typo.

This commit is contained in:
Jelmer Vernooij
2007-12-07 23:56:53 +01:00
committed by Stefan Metzmacher
parent baa5bcd303
commit 2a005096dd
2 changed files with 4 additions and 5 deletions

View File

@@ -98,7 +98,7 @@ static int ejs_lpGet(MprVarHandle eid, int argc, char **argv)
mpr_Return(eid, mprCreateUndefinedVar());
return 0;
}
parm_ptr = lp_parm_ptr(service, parm);
parm_ptr = lp_parm_ptr(global_loadparm, service, parm);
} else if (strchr(argv[0], ':')) {
/* its a global parametric option */
const char *type = talloc_strndup(mprMemCtx(),
@@ -123,7 +123,7 @@ static int ejs_lpGet(MprVarHandle eid, int argc, char **argv)
mpr_Return(eid, mprCreateUndefinedVar());
return 0;
}
parm_ptr = lp_parm_ptr(NULL, parm);
parm_ptr = lp_parm_ptr(global_loadparm, NULL, parm);
}
if (parm == NULL || parm_ptr == NULL) {