1524bc
From 7de67a994e84c2fadccb48c2448f2cba529a57fd Mon Sep 17 00:00:00 2001
1524bc
From: Volker Lendecke <vl@samba.org>
1524bc
Date: Wed, 31 Jul 2019 10:42:24 +0200
1524bc
Subject: [PATCH] smbd: Fix the build with clang
1524bc
1524bc
clang correctly complains that "close_fsp" is used uninitialized if
1524bc
"get_posix_fsp" fails and we end up in "goto out;".
1524bc
1524bc
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14251
1524bc
1524bc
Signed-off-by: Volker Lendecke <vl@samba.org>
1524bc
Reviewed-by: Jeremy Allison <jra@samba.org>
1524bc
(cherry picked from commit a8a1ca3f83dce6d725392989cbc97271cbf52f4a)
1524bc
---
1524bc
 source3/smbd/trans2.c | 2 +-
1524bc
 1 file changed, 1 insertion(+), 1 deletion(-)
1524bc
1524bc
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
1524bc
index b0616f15ade..8164c8fd213 100644
1524bc
--- a/source3/smbd/trans2.c
1524bc
+++ b/source3/smbd/trans2.c
1524bc
@@ -4848,7 +4848,7 @@ static NTSTATUS smb_query_posix_acl(connection_struct *conn,
1524bc
 	unsigned int size_needed = 0;
1524bc
 	NTSTATUS status;
1524bc
 	bool ok;
1524bc
-	bool close_fsp;
1524bc
+	bool close_fsp = false;
1524bc
 
1524bc
 	/*
1524bc
 	 * Ensure we always operate on a file descriptor, not just
1524bc
-- 
1524bc
2.24.1
1524bc