From: Joseph Sutton Date: Thu, 28 Sep 2023 03:50:29 +0000 (+1300) Subject: s4:ntvfs: Fix building with FORTIFY_SOURCE=2 X-Git-Tag: tevent-0.16.0~298 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c2f55b061f85ed7588ef93bdd2d80c5be996f028;p=thirdparty%2Fsamba.git s4:ntvfs: Fix building with FORTIFY_SOURCE=2 Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- 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;