summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2019-08-14 11:25:19 +0100
committerGary Lockyer <gary@samba.org>2019-08-27 23:04:37 +0000
commite06d34e98e1d01d04997c342255595ddf74fb388 (patch)
treedbb58cb8c1bfd627bc365db73f7ef53ce6dca368 /source3/libsmb
parent8190993d99284162bd8699780248bb2edfec2673 (diff)
downloadsamba-e06d34e98e1d01d04997c342255595ddf74fb388.tar.gz
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 <noel.power@suse.com> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clifile.c2
1 files changed, 1 insertions, 1 deletions
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);