diff options
author | Noel Power <noel.power@suse.com> | 2019-08-08 15:18:03 +0100 |
---|---|---|
committer | Gary Lockyer <gary@samba.org> | 2019-08-28 01:47:40 +0000 |
commit | 6ef4736c3f642d5b1625f6edb8b3cfdc6e7e3736 (patch) | |
tree | 09e9d48538a8004078bb0cf4bd33043b2c124633 /source3/libsmb | |
parent | 2abe785264b105fc3a5b2ce6bd3df7d24fbdf360 (diff) | |
download | samba-6ef4736c3f642d5b1625f6edb8b3cfdc6e7e3736.tar.gz |
s3/libsmb: clang: Fix Value set during its initialization is never read
Fixes:
source3/libsmb/namequery.c:2584:11: warning: Value stored to 'status' during its initialization is never read <--[clang]
NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/namequery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index 4469db8b009..bb9585dd402 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -2749,7 +2749,7 @@ NTSTATUS internal_resolve_name(const char *name, SAFE_FREE(*return_iplist); *return_count = 0; - return NT_STATUS_UNSUCCESSFUL; + return status; done: |