svn commit: samba r19191 - in branches/SAMBA_3_0/source/lib/ldb/common: .

metze at samba.org metze at samba.org
Mon Oct 9 08:25:28 GMT 2006


Author: metze
Date: 2006-10-09 08:25:27 +0000 (Mon, 09 Oct 2006)
New Revision: 19191

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

Log:
merge from samba4:

fix checker warnings

metze
Modified:
   branches/SAMBA_3_0/source/lib/ldb/common/ldb_dn.c
   branches/SAMBA_3_0/source/lib/ldb/common/ldb_modules.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/ldb/common/ldb_dn.c
===================================================================
--- branches/SAMBA_3_0/source/lib/ldb/common/ldb_dn.c	2006-10-09 08:22:59 UTC (rev 19190)
+++ branches/SAMBA_3_0/source/lib/ldb/common/ldb_dn.c	2006-10-09 08:25:27 UTC (rev 19191)
@@ -598,6 +598,7 @@
 		struct ldb_dn_component dc;
 		const struct ldb_attrib_handler *h;
 
+		memset(&dc, 0, sizeof(dc));
 		dc.name = ldb_attr_casefold(cedn->components, edn->components[i].name);
 		if (!dc.name) {
 			talloc_free(cedn);

Modified: branches/SAMBA_3_0/source/lib/ldb/common/ldb_modules.c
===================================================================
--- branches/SAMBA_3_0/source/lib/ldb/common/ldb_modules.c	2006-10-09 08:22:59 UTC (rev 19190)
+++ branches/SAMBA_3_0/source/lib/ldb/common/ldb_modules.c	2006-10-09 08:25:27 UTC (rev 19191)
@@ -324,7 +324,7 @@
 		}
 
 		ret = ldb_search(ldb, mods_dn, LDB_SCOPE_BASE, "", attrs, &res);
-		if (res) talloc_steal(mods_dn, res);
+		talloc_steal(mods_dn, res);
 		if (ret == LDB_SUCCESS && (res->count == 0 || res->msgs[0]->num_elements == 0)) {
 			ldb_debug(ldb, LDB_DEBUG_TRACE, "no modules required by the db\n");
 		} else {



More information about the samba-cvs mailing list