From: Noel Power Date: Thu, 8 Aug 2019 14:15:11 +0000 (+0100) Subject: s3/libsmb: clang: Fix: The right operand of '<' is a garbage value X-Git-Tag: tevent-0.10.1~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2abe785264b105fc3a5b2ce6bd3df7d24fbdf360;p=thirdparty%2Fsamba.git 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 Reviewed-by: Gary Lockyer --- 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;