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

abartlet at samba.org abartlet at samba.org
Thu Jul 6 07:37:41 GMT 2006


Author: abartlet
Date: 2006-07-06 07:37:41 +0000 (Thu, 06 Jul 2006)
New Revision: 16832

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

Log:
I should be more careful (and test!) when trying to make compilers and
static checkers happy...

Andrew Bartlett

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


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c	2006-07-06 06:04:06 UTC (rev 16831)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c	2006-07-06 07:37:41 UTC (rev 16832)
@@ -578,7 +578,9 @@
 	if (edn == NULL) return NULL;
 
 	cedn = ldb_dn_new(ldb);
-	return NULL;
+	if (!cedn) {
+		return NULL;
+	}
 
 	cedn->comp_num = edn->comp_num;
 	cedn->components = talloc_array(cedn, struct ldb_dn_component, edn->comp_num);



More information about the samba-cvs mailing list