From e06d34e98e1d01d04997c342255595ddf74fb388 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Wed, 14 Aug 2019 11:25:19 +0100 Subject: [PATCH] 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 --- source3/libsmb/clifile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.4.GIT