diff options
author | Noel Power <noel.power@suse.com> | 2019-07-08 15:19:51 +0000 |
---|---|---|
committer | Gary Lockyer <gary@samba.org> | 2019-07-11 04:08:13 +0000 |
commit | fa551bf0a4ae5a6687a1ee638dc3c495a30a2e19 (patch) | |
tree | 28ba9ba555b4c8a556e9ac127c90760b2c81ea00 /libcli | |
parent | 71943ab53ee67dab0bb47753b78074917f38749e (diff) | |
download | samba-fa551bf0a4ae5a6687a1ee638dc3c495a30a2e19.tar.gz |
libcl/smb: clang: Fix 'Value stored to 'next_offset' is never read'
Fixes:
libcli/smb/smb2_create_blob.c:146:3: warning: Value stored to 'next_offset' is never read <--[clang]
next_offset += next_pad;
^ ~~~~~~~~
1 warning generated.
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/smb/smb2_create_blob.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libcli/smb/smb2_create_blob.c b/libcli/smb/smb2_create_blob.c index 457ed290fba..bb994f28e2f 100644 --- a/libcli/smb/smb2_create_blob.c +++ b/libcli/smb/smb2_create_blob.c @@ -143,7 +143,6 @@ static NTSTATUS smb2_create_blob_push_one(TALLOC_CTX *mem_ctx, DATA_BLOB *buffer memcpy(buffer->data+ofs+blob_offset, blob->data.data, blob->data.length); if (next_pad > 0) { memset(buffer->data+ofs+next_offset, 0, next_pad); - next_offset += next_pad; } return NT_STATUS_OK; |