diff options
author | Volker Lendecke <vl@samba.org> | 2019-08-23 17:47:47 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-09-10 23:14:31 +0000 |
commit | 92c2a723b278fb0338248bfb1fd1c1f4b90dce2b (patch) | |
tree | 1d7db34421c6df3de4199413c6611d4d83c95217 /lib/dbwrap | |
parent | b86df6d0591d7d8f3c08d0fe0975839ba00c342c (diff) | |
download | samba-92c2a723b278fb0338248bfb1fd1c1f4b90dce2b.tar.gz |
dbwrap: Initialize state in dbwrap_delete()
Probably not required, but looks safer and gives static checkers less
reason to complain about potentially uninitialized variable reads
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/dbwrap')
-rw-r--r-- | lib/dbwrap/dbwrap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dbwrap/dbwrap.c b/lib/dbwrap/dbwrap.c index f8eefcca02d..3d8d2ae78d7 100644 --- a/lib/dbwrap/dbwrap.c +++ b/lib/dbwrap/dbwrap.c @@ -339,7 +339,7 @@ static void dbwrap_delete_fn(struct db_record *rec, void *private_data) NTSTATUS dbwrap_delete(struct db_context *db, TDB_DATA key) { - struct dbwrap_delete_state state; + struct dbwrap_delete_state state = { .status = NT_STATUS_NOT_FOUND }; NTSTATUS status; status = dbwrap_do_locked(db, key, dbwrap_delete_fn, &state); |