mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
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>
This commit is contained in:
parent
71943ab53e
commit
fa551bf0a4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user