diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-25 02:23:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:30:00 -0500 |
commit | 8fbcde9450037115aeab087395575dc027b213a6 (patch) | |
tree | 58b88370e60318e829afe60474e79dc6b33d0fda | |
parent | 44ff3305f8ddc2caa9962a48ce5d3f4e2bd883ef (diff) | |
download | samba-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)
-rw-r--r-- | source4/scripting/ejs/mprutil.c | 2 |
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); } /* |