locking: Fix an uninitialized variable read
authorVolker Lendecke <vl@samba.org>
Wed, 3 Mar 2021 18:19:23 +0000 (19:19 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 8 Mar 2021 07:53:17 +0000 (07:53 +0000)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=14636
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 84b634c613352fc1da8e1525d72597c526d534d2)

source3/locking/share_mode_lock.c

index a736bc24469b2924df295ac5419edcfbbccf807d..a0de9f5b0702bb66d4f5e1920b464effd3f3bf2d 100644 (file)
@@ -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];