svn commit: samba r7517 - in branches/SAMBA_4_0/source/lib/ldb/common: .

tridge at samba.org tridge at samba.org
Mon Jun 13 05:58:50 GMT 2005


Author: tridge
Date: 2005-06-13 05:58:49 +0000 (Mon, 13 Jun 2005)
New Revision: 7517

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

Log:
handle zero length equality tests


Modified:
   branches/SAMBA_4_0/source/lib/ldb/common/ldb_parse.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_parse.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/common/ldb_parse.c	2005-06-13 05:56:46 UTC (rev 7516)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_parse.c	2005-06-13 05:58:49 UTC (rev 7517)
@@ -134,7 +134,7 @@
 {
 	int i, j;
 	struct ldb_val ret;
-	int slen = strlen(str);
+	int slen = str?strlen(str):0;
 
 	ret.data = talloc_size(ctx, slen+1);
 	ret.length = 0;



More information about the samba-cvs mailing list