diff options
author | Noel Power <noel.power@suse.com> | 2019-08-08 15:15:11 +0100 |
---|---|---|
committer | Gary Lockyer <gary@samba.org> | 2019-08-28 01:47:40 +0000 |
commit | 2abe785264b105fc3a5b2ce6bd3df7d24fbdf360 (patch) | |
tree | 6de426ed3294ba082b9e0c7a2f5d9e0ef7576fbc /source3/libsmb | |
parent | 52d20087f620704549f5a5cdcbec79cb08a36290 (diff) | |
download | samba-2abe785264b105fc3a5b2ce6bd3df7d24fbdf360.tar.gz |
s3/libsmb: clang: Fix: The right operand of '<' is a garbage value
Fixes:
source3/libsmb/namequery.c:977:12: warning: The right operand of '<' is a garbage value <--[clang]
for (i=0;i<count;i++) {
^~~~~~
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 f61e2507cce..4469db8b009 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -931,7 +931,7 @@ bool name_status_find(const char *q_name, struct sockaddr_storage ss; struct node_status *addrs = NULL; struct nmb_name nname; - int count, i; + int count = 0, i; bool result = false; NTSTATUS status; |