svn commit: samba r20050 - in branches/SAMBA_3_0/source/lib/ldb/ldb_tdb: .

vlendec at samba.org vlendec at samba.org
Wed Dec 6 11:45:34 GMT 2006


Author: vlendec
Date: 2006-12-06 11:45:33 +0000 (Wed, 06 Dec 2006)
New Revision: 20050

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

Log:
Remove a bogus NULL check, LTDB_OBJECTCLASS is a static string
Modified:
   branches/SAMBA_3_0/source/lib/ldb/ldb_tdb/ldb_index.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/ldb/ldb_tdb/ldb_index.c
===================================================================
--- branches/SAMBA_3_0/source/lib/ldb/ldb_tdb/ldb_index.c	2006-12-06 11:01:27 UTC (rev 20049)
+++ branches/SAMBA_3_0/source/lib/ldb/ldb_tdb/ldb_index.c	2006-12-06 11:45:33 UTC (rev 20050)
@@ -296,9 +296,6 @@
 		struct dn_list *list2;
 		tree2.operation = LDB_OP_EQUALITY;
 		tree2.u.equality.attr = LTDB_OBJECTCLASS;
-		if (!tree2.u.equality.attr) {
-			return -1;
-		}
 		tree2.u.equality.value.data = 
 			(uint8_t *)talloc_strdup(list, subclasses[i]);
 		if (tree2.u.equality.value.data == NULL) {



More information about the samba-cvs mailing list