summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-25 02:23:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:30:00 -0500
commit8fbcde9450037115aeab087395575dc027b213a6 (patch)
tree58b88370e60318e829afe60474e79dc6b33d0fda /source4/scripting/ejs
parent44ff3305f8ddc2caa9962a48ce5d3f4e2bd883ef (diff)
downloadsamba-8fbcde9450037115aeab087395575dc027b213a6.tar.gz
samba-8fbcde9450037115aeab087395575dc027b213a6.tar.bz2
samba-8fbcde9450037115aeab087395575dc027b213a6.zip
r8742: fixed handling of zero length names in mprObject()
(This used to be commit 8086c37df65ac666aa340141d3584e9bc2c81278)
Diffstat (limited to 'source4/scripting/ejs')
-rw-r--r--source4/scripting/ejs/mprutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/ejs/mprutil.c b/source4/scripting/ejs/mprutil.c
index 99eff80276..5a29ddc144 100644
--- a/source4/scripting/ejs/mprutil.c
+++ b/source4/scripting/ejs/mprutil.c
@@ -29,7 +29,7 @@
*/
struct MprVar mprObject(const char *name)
{
- return ejsCreateObj(name?name:"(NULL)", MPR_DEFAULT_HASH_SIZE);
+ return ejsCreateObj(name && *name?name:"(NULL)", MPR_DEFAULT_HASH_SIZE);
}
/*