From 84b634c613352fc1da8e1525d72597c526d534d2 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 --- 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 e8bb3e58e1f..d8c5222d70a 100644 --- a/source3/locking/share_mode_lock.c +++ b/source3/locking/share_mode_lock.c @@ -2167,7 +2167,7 @@ static bool share_mode_entry_do( struct locking_tdb_data *ltdb = NULL; size_t idx; bool found = false; - bool modified; + bool modified = false; struct share_mode_entry e; uint8_t *e_ptr = NULL; bool had_share_entries, have_share_entries; -- 2.47.3