diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-08-31 14:26:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:36:15 -0500 |
commit | adf31c5042497cbdf10d3542672bf8a5d0956216 (patch) | |
tree | f3f7f1bcf49c2ae52ea15f55b5e1557d7b9bbe45 /source4/scripting | |
parent | 06db5396966819b3124034d25d814cc0843bd6e9 (diff) | |
download | samba-adf31c5042497cbdf10d3542672bf8a5d0956216.tar.gz samba-adf31c5042497cbdf10d3542672bf8a5d0956216.tar.xz samba-adf31c5042497cbdf10d3542672bf8a5d0956216.zip |
r9826: Add some more OOM checks
(This used to be commit 213bcb7e16290da0c26492ced65509a63942d4ce)
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/ejs/smbcalls_param.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/ejs/smbcalls_param.c b/source4/scripting/ejs/smbcalls_param.c index ddd2b44c822..578df1b0874 100644 --- a/source4/scripting/ejs/smbcalls_param.c +++ b/source4/scripting/ejs/smbcalls_param.c @@ -70,7 +70,7 @@ static int ejs_param_get_list(MprVarHandle eid, int argc, char **argv) const char **ret; if (argc != 1 && argc != 2) { - ejsSetErrorMsg(eid, "param.get invalid argument count"); + ejsSetErrorMsg(eid, "param.get_list invalid argument count"); return -1; } @@ -83,7 +83,7 @@ static int ejs_param_get_list(MprVarHandle eid, int argc, char **argv) ret = param_get_string_list(ctx, NULL, argv[0], NULL); } - if (ret) { + if (ret != NULL) { mpr_Return(eid, mprList("array", ret)); } else { mpr_Return(eid, mprCreateUndefinedVar()); |