summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs/smbcalls_rpc.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-11 10:18:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:20:06 -0500
commit887461327a93e1677de44438a5e4a1abd5b91f11 (patch)
tree8cd1f4b3c45e788341c4e7d5b2192bc2fdd88a6a /source4/scripting/ejs/smbcalls_rpc.c
parent07c2a1c09a97a069f3e569c4ec8f2628e6f13a93 (diff)
downloadsamba-887461327a93e1677de44438a5e4a1abd5b91f11.tar.gz
samba-887461327a93e1677de44438a5e4a1abd5b91f11.tar.bz2
samba-887461327a93e1677de44438a5e4a1abd5b91f11.zip
r8320: make sure all our returned objects are full objects, which means they
have the toString() and valueOf() default attributes this allows all our returned objects to be used in logical expressions (This used to be commit 570f071b1544b497d5f480b8ad50df097fe4c843)
Diffstat (limited to 'source4/scripting/ejs/smbcalls_rpc.c')
-rw-r--r--source4/scripting/ejs/smbcalls_rpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/ejs/smbcalls_rpc.c b/source4/scripting/ejs/smbcalls_rpc.c
index bb05eda426..53f7bc2e55 100644
--- a/source4/scripting/ejs/smbcalls_rpc.c
+++ b/source4/scripting/ejs/smbcalls_rpc.c
@@ -227,7 +227,7 @@ static int ejs_irpc_call(int eid, struct MprVar *conn, struct MprVar *io,
talloc_steal(reqs, reqs[i]);
}
- mprSetVar(io, "results", mprCreateObjVar("results", MPR_DEFAULT_HASH_SIZE));
+ mprSetVar(io, "results", mprObject("results"));
results = mprGetProperty(io, "results", NULL);
/* and receive the results, placing them in io.results[i] */