summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-08-20 15:28:19 +0200
committerGünther Deschner <gd@samba.org>2009-08-20 15:29:16 +0200
commit77a0a6e9a1a30b0ea3e36aaf751b433c546b5c5c (patch)
tree5d2afc15c9e594c091bd7d3c14fb4c52833e0ec1 /source3/winbindd
parent4c69c151dbcab30d53ece70f5e23c5971320a5c8 (diff)
downloadsamba-77a0a6e9a1a30b0ea3e36aaf751b433c546b5c5c.tar.gz
samba-77a0a6e9a1a30b0ea3e36aaf751b433c546b5c5c.tar.bz2
samba-77a0a6e9a1a30b0ea3e36aaf751b433c546b5c5c.zip
s3-idmap: fix two uninitialized variable warnings in idmap_tdb2.
Guenther
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/idmap_tdb2.c6
1 files 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) {