From c2f55b061f85ed7588ef93bdd2d80c5be996f028 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Thu, 28 Sep 2023 16:50:29 +1300 Subject: [PATCH] s4:ntvfs: Fix building with FORTIFY_SOURCE=2 Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- source4/ntvfs/common/brlock_tdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/ntvfs/common/brlock_tdb.c b/source4/ntvfs/common/brlock_tdb.c index 22411733fe6..c4cd76bbe20 100644 --- a/source4/ntvfs/common/brlock_tdb.c +++ b/source4/ntvfs/common/brlock_tdb.c @@ -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; -- 2.47.3