summaryrefslogtreecommitdiff
path: root/source4/lib/ejs/ejsParser.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-05-30 06:06:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:14 -0500
commit89f796006f4f532457d001910c6893aa0e70d559 (patch)
tree7083598fe5169129ebbabb8dddce30d77f0436fa /source4/lib/ejs/ejsParser.c
parent89a17e60a14783e8560d3babc8a9a328adc3c94c (diff)
downloadsamba-89f796006f4f532457d001910c6893aa0e70d559.tar.gz
samba-89f796006f4f532457d001910c6893aa0e70d559.tar.bz2
samba-89f796006f4f532457d001910c6893aa0e70d559.zip
r7085: fixed a bug in ejs with setting up the arguments[] array
(This used to be commit 722950c21365982ac9a62f97360b6c4a0bdd4acc)
Diffstat (limited to 'source4/lib/ejs/ejsParser.c')
-rw-r--r--source4/lib/ejs/ejsParser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/ejs/ejsParser.c b/source4/lib/ejs/ejsParser.c
index f9335ec004..d42d66bcf5 100644
--- a/source4/lib/ejs/ejsParser.c
+++ b/source4/lib/ejs/ejsParser.c
@@ -2069,6 +2069,8 @@ static int evalFunction(Ejs *ep, MprVar *obj, int flags)
*/
for (i = 0; i < formalArgs->used; i++) {
mprCreateProperty(ep->local, argNames[i], argValues[i]);
+ }
+ for (i = 0; i < actualArgs->used; i++) {
mprItoa(i, buf, sizeof(buf));
mprCreateProperty(&arguments, buf, argValues[i]);
}