summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
/*