From 90e36ef72992a073ba92e736f4533a10f3f5248f Mon Sep 17 00:00:00 2001 From: Noel Power Date: Tue, 9 Jul 2019 14:04:34 +0000 Subject: [PATCH] libcli/smb: clang: Fix Value stored to 'next_offset' is never read Fixes: ibcli/smb/smb2_negotiate_context.c:117:3: warning: Value stored to 'next_offset' is never read <--[clang] next_offset += next_pad; ^ ~~~~~~~~ 1 warning generated. Signed-off-by: Noel Power Reviewed-by: Gary Lockyer --- libcli/smb/smb2_negotiate_context.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libcli/smb/smb2_negotiate_context.c b/libcli/smb/smb2_negotiate_context.c index ac4a08e8910..f9c98fcf805 100644 --- a/libcli/smb/smb2_negotiate_context.c +++ b/libcli/smb/smb2_negotiate_context.c @@ -114,7 +114,6 @@ static NTSTATUS smb2_negotiate_context_push_one(TALLOC_CTX *mem_ctx, DATA_BLOB * memcpy(buffer->data+ofs+0x08, context->data.data, context->data.length); if (next_pad > 0) { memset(buffer->data+ofs+next_offset, 0, next_pad); - next_offset += next_pad; } return NT_STATUS_OK; -- 2.11.4.GIT