[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-1102-g77a0a6e

Günther Deschner gd at samba.org
Thu Aug 20 07:29:49 MDT 2009


The branch, master has been updated
       via  77a0a6e9a1a30b0ea3e36aaf751b433c546b5c5c (commit)
      from  4c69c151dbcab30d53ece70f5e23c5971320a5c8 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 77a0a6e9a1a30b0ea3e36aaf751b433c546b5c5c
Author: Günther Deschner <gd at samba.org>
Date:   Thu Aug 20 15:28:19 2009 +0200

    s3-idmap: fix two uninitialized variable warnings in idmap_tdb2.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source3/winbindd/idmap_tdb2.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/winbindd/idmap_tdb2.c b/source3/winbindd/idmap_tdb2.c
index ef365f3..22aff0d 100644
--- a/source3/winbindd/idmap_tdb2.c
+++ b/source3/winbindd/idmap_tdb2.c
@@ -252,7 +252,7 @@ static NTSTATUS idmap_tdb2_allocate_id(struct unixid *xid)
 	const char *hwmkey;
 	const char *hwmtype;
 	uint32_t high_hwm;
-	uint32_t hwm;
+	uint32_t hwm = 0;
 	NTSTATUS status;
 	struct idmap_tdb2_allocate_id_context state;
 
@@ -469,10 +469,10 @@ static NTSTATUS idmap_tdb2_set_mapping_action(struct db_context *db,
 	struct idmap_tdb2_set_mapping_context *state;
 	TALLOC_CTX *tmp_ctx = talloc_stackframe();
 
-	DEBUG(10, ("Storing %s <-> %s map\n", state->ksidstr, state->kidstr));
-
 	state = (struct idmap_tdb2_set_mapping_context *)private_data;
 
+	DEBUG(10, ("Storing %s <-> %s map\n", state->ksidstr, state->kidstr));
+
 	/* check wheter sid mapping is already present in db */
 	data = dbwrap_fetch_bystring(db, tmp_ctx, state->ksidstr);
 	if (data.dptr) {


-- 
Samba Shared Repository


More information about the samba-cvs mailing list