]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:ntvfs: Fix building with FORTIFY_SOURCE=2
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 28 Sep 2023 03:50:29 +0000 (16:50 +1300)
committerJoseph Sutton <jsutton@samba.org>
Sun, 1 Oct 2023 22:45:38 +0000 (22:45 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/ntvfs/common/brlock_tdb.c

index 22411733fe6cd4587f5d4cfd6f4dc2304859f313..c4cd76bbe20c7d171d6df0e340dd5ec56db10513 100644 (file)
@@ -455,7 +455,7 @@ static NTSTATUS brl_tdb_unlock(struct brl_context *brl,
 {
        TDB_DATA kbuf, dbuf;
        int count, i;
-       struct lock_struct *locks, *lock;
+       struct lock_struct *locks, *lock = NULL;
        struct lock_context context;
        struct db_record *locked;
        NTSTATUS status;