summaryrefslogtreecommitdiff
path: root/lib/dbwrap
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dbwrap')
-rw-r--r--lib/dbwrap/dbwrap_tdb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/dbwrap/dbwrap_tdb.c b/lib/dbwrap/dbwrap_tdb.c
index 19f2f009c0c..d695f3bd732 100644
--- a/lib/dbwrap/dbwrap_tdb.c
+++ b/lib/dbwrap/dbwrap_tdb.c
@@ -118,8 +118,9 @@ static struct db_record *db_tdb_fetch_locked_internal(
struct tdb_fetch_locked_state state;
int ret;
- state.mem_ctx = mem_ctx;
- state.result = NULL;
+ state = (struct tdb_fetch_locked_state) {
+ .mem_ctx = mem_ctx,
+ };
ret = tdb_parse_record(ctx->wtdb->tdb,
key,