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>
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);