diff options
author | Noel Power <noel.power@suse.com> | 2019-08-14 11:25:19 +0100 |
---|---|---|
committer | Gary Lockyer <gary@samba.org> | 2019-08-27 23:04:37 +0000 |
commit | e06d34e98e1d01d04997c342255595ddf74fb388 (patch) | |
tree | dbb58cb8c1bfd627bc365db73f7ef53ce6dca368 /source3/libsmb | |
parent | 8190993d99284162bd8699780248bb2edfec2673 (diff) | |
download | samba-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.c | 2 |
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); |