summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/dbwrap_tdb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/lib/dbwrap_tdb.c b/source3/lib/dbwrap_tdb.c
index 83a0d111aa..710e45de6b 100644
--- a/source3/lib/dbwrap_tdb.c
+++ b/source3/lib/dbwrap_tdb.c
@@ -160,8 +160,7 @@ static int db_tdb_fetch(struct db_context *db, TALLOC_CTX *mem_ctx,
state.mem_ctx = mem_ctx;
state.result = 0;
- state.data.dptr = NULL;
- state.data.dsize = 0;
+ state.data = tdb_null;
tdb_parse_record(ctx->wtdb->tdb, key, db_tdb_fetch_parse, &state);