From df832cb62c01bf6a2a801340a4434c0db51c34e0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 3 Mar 2021 19:19:23 +0100 Subject: [PATCH] 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) --- source3/locking/share_mode_lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.47.2