mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3/libsmb: clang: Fix 'warning: Assigned value is garbage or undefined '
Fixes: source3/libsmb/clireadwrite.c:1259:17: warning: Assigned value is garbage or undefined <--[clang] state->written += written; ^ ~~~~~~~ source3/libsmb/clireadwrite.c:1722:14: warning: The left operand of '>' is a garbage value <--[clang] if (written > expected) { ~~~~~~~ ^ Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz> Autobuild-User(master): Gary Lockyer <gary@samba.org> Autobuild-Date(master): Wed Aug 28 00:22:49 UTC 2019 on sn-devel-184
This commit is contained in:
parent
ad8fd31441
commit
2575e4066b
@ -1248,7 +1248,7 @@ static void cli_smb1_writeall_written(struct tevent_req *subreq)
|
||||
struct cli_smb1_writeall_state *state = tevent_req_data(
|
||||
req, struct cli_smb1_writeall_state);
|
||||
NTSTATUS status;
|
||||
size_t written, to_write;
|
||||
size_t written = 0, to_write;
|
||||
|
||||
status = cli_write_andx_recv(subreq, &written);
|
||||
TALLOC_FREE(subreq);
|
||||
|
Loading…
Reference in New Issue
Block a user