From: Volker Lendecke Date: Wed, 3 Mar 2021 18:19:23 +0000 (+0100) Subject: locking: Fix an uninitialized variable read X-Git-Tag: samba-4.12.12~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df832cb62c01bf6a2a801340a4434c0db51c34e0;p=thirdparty%2Fsamba.git locking: Fix an uninitialized variable read Bug: https://bugzilla.samba.org/show_bug.cgi?id=14636 Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher (cherry picked from commit 84b634c613352fc1da8e1525d72597c526d534d2) --- diff --git a/source3/locking/share_mode_lock.c b/source3/locking/share_mode_lock.c index a736bc24469..a0de9f5b070 100644 --- a/source3/locking/share_mode_lock.c +++ b/source3/locking/share_mode_lock.c @@ -1923,7 +1923,7 @@ static void share_mode_entry_do_fn( struct share_mode_entry_do_state *state = private_data; size_t idx; bool found = false; - bool modified; + bool modified = false; struct share_mode_entry e; struct share_mode_entry_buf buf; TDB_DATA dbufs[3];