From: Noel Power Date: Wed, 14 Aug 2019 10:25:19 +0000 (+0100) Subject: s3/libsmb: clang: Fix 'The left operand of '!=' is a garbage value' X-Git-Tag: tevent-0.10.1~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e06d34e98e1d01d04997c342255595ddf74fb388;p=thirdparty%2Fsamba.git s3/libsmb: clang: Fix 'The left operand of '!=' is a garbage value' Fixes: source3/libsmb/clifile.c:789:15: warning: The left operand of '!=' is a garbage value <--[clang] if (num_data != 100) { ~~~~~~~~ ^ Signed-off-by: Noel Power Reviewed-by: Gary Lockyer --- diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index e696b536093..486fec01cf8 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -777,7 +777,7 @@ static void cli_posix_stat_done(struct tevent_req *subreq) struct stat_state *state = tevent_req_data(req, struct stat_state); SMB_STRUCT_STAT *sbuf = state->sbuf; uint8_t *data; - uint32_t num_data; + uint32_t num_data = 0; NTSTATUS status; status = cli_qpathinfo_recv(subreq, state, &data, &num_data);