From 77a0a6e9a1a30b0ea3e36aaf751b433c546b5c5c Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 20 Aug 2009 15:28:19 +0200 Subject: s3-idmap: fix two uninitialized variable warnings in idmap_tdb2. Guenther --- source3/winbindd/idmap_tdb2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/winbindd/idmap_tdb2.c b/source3/winbindd/idmap_tdb2.c index ef365f3ea8..22aff0d3f7 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) { -- cgit