diff options
Diffstat (limited to 'source4/scripting/ejs/mprutil.c')
-rw-r--r-- | source4/scripting/ejs/mprutil.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/scripting/ejs/mprutil.c b/source4/scripting/ejs/mprutil.c index 40ca050a96..4f799b2066 100644 --- a/source4/scripting/ejs/mprutil.c +++ b/source4/scripting/ejs/mprutil.c @@ -128,7 +128,7 @@ struct MprVar mprList(const char *name, const char **list) struct MprVar mprString(const char *s) { if (s == NULL) { - return mprCreatePtrVar(NULL, "NULL"); + return mprCreatePtrVar(NULL); } return mprCreateStringVar(s, 1); } @@ -289,7 +289,7 @@ struct MprVar mprWERROR(WERROR status) */ void mprSetPtr(struct MprVar *v, const char *propname, const void *p) { - mprSetVar(v, propname, mprCreatePtrVar(discard_const(p), NULL)); + mprSetVar(v, propname, mprCreatePtrVar(discard_const(p))); } /* @@ -297,7 +297,7 @@ void mprSetPtr(struct MprVar *v, const char *propname, const void *p) */ void mprSetPtrChild(struct MprVar *v, const char *propname, const void *p) { - mprSetVar(v, propname, mprCreatePtrVar(discard_const(p), NULL)); + mprSetVar(v, propname, mprCreatePtrVar(discard_const(p))); talloc_steal(mprGetProperty(v, propname, NULL), p); } |