1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-26 18:50:30 +03:00

smbd: Fix the build with clang

clang correctly complains that "close_fsp" is used uninitialized if
"get_posix_fsp" fails and we end up in "goto out;".

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2019-07-31 10:42:24 +02:00 committed by Jeremy Allison
parent 3ca52f11dc
commit a8a1ca3f83

View File

@ -4918,7 +4918,7 @@ static NTSTATUS smb_query_posix_acl(connection_struct *conn,
unsigned int size_needed = 0;
NTSTATUS status;
bool ok;
bool close_fsp;
bool close_fsp = false;
/*
* Ensure we always operate on a file descriptor, not just