summaryrefslogtreecommitdiff
path: root/lib/dbwrap
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-06-22 15:08:22 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-22 15:16:53 +0200
commit0f25bd78ca0ddbeff971d72791687ab25d6b33e4 (patch)
tree24c0c565a386f06941851a1befe1b08ea034e5c6 /lib/dbwrap
parentd7b9e0d19a72783b45610dcf006571817338b50f (diff)
downloadsamba-0f25bd78ca0ddbeff971d72791687ab25d6b33e4.tar.gz
samba-0f25bd78ca0ddbeff971d72791687ab25d6b33e4.tar.bz2
samba-0f25bd78ca0ddbeff971d72791687ab25d6b33e4.zip
dbwrap: intialize state.status in dbwrap_fetch_int32()
This might not be needed, but it makes it more clear that we won't use uninitialized memory, it the callback was not triggered. metze
Diffstat (limited to 'lib/dbwrap')
-rw-r--r--lib/dbwrap/dbwrap_util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dbwrap/dbwrap_util.c b/lib/dbwrap/dbwrap_util.c
index b1efae7221..8452070782 100644
--- a/lib/dbwrap/dbwrap_util.c
+++ b/lib/dbwrap/dbwrap_util.c
@@ -54,6 +54,8 @@ NTSTATUS dbwrap_fetch_int32(struct db_context *db, TDB_DATA key,
return NT_STATUS_INVALID_PARAMETER;
}
+ state.status = NT_STATUS_INTERNAL_ERROR;
+
dbwrap_parse_record(db, key, dbwrap_fetch_int32_parser, &state);
if (NT_STATUS_IS_OK(state.status)) {