From 0f25bd78ca0ddbeff971d72791687ab25d6b33e4 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 22 Jun 2012 15:08:22 +0200 Subject: [PATCH] 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 --- lib/dbwrap/dbwrap_util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/dbwrap/dbwrap_util.c b/lib/dbwrap/dbwrap_util.c index b1efae72213..84520707829 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)) { -- 2.34.1