svn commit: samba r8742 - in branches/SAMBA_4_0/source/scripting/ejs: .

tridge at samba.org tridge at samba.org
Mon Jul 25 02:23:04 GMT 2005


Author: tridge
Date: 2005-07-25 02:23:04 +0000 (Mon, 25 Jul 2005)
New Revision: 8742

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8742

Log:
fixed handling of zero length names in mprObject()

Modified:
   branches/SAMBA_4_0/source/scripting/ejs/mprutil.c


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/ejs/mprutil.c
===================================================================
--- branches/SAMBA_4_0/source/scripting/ejs/mprutil.c	2005-07-25 01:19:16 UTC (rev 8741)
+++ branches/SAMBA_4_0/source/scripting/ejs/mprutil.c	2005-07-25 02:23:04 UTC (rev 8742)
@@ -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);
 }
 
 /*



More information about the samba-cvs mailing list