s3/libsmb: clang: Fix 'Value stored to 'p' is never read'
authorNoel Power <noel.power@suse.com>
Tue, 13 Aug 2019 14:18:10 +0000 (15:18 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 22 Oct 2019 17:28:27 +0000 (17:28 +0000)
Fixes:

source3/libsmb/climessage.c:73:2: warning: Value stored to 'p' is never read <--[clang]
        p += hlen;
        ^    ~~~~
1 warning generated.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/libsmb/climessage.c

index 5db010241838074e6290feabc06fc63dcbf0b6b6..fd21681ec72538b8cc952b7e20377c8aee46d4e6 100644 (file)
@@ -70,7 +70,6 @@ static struct tevent_req *cli_message_start_send(TALLOC_CTX *mem_ctx,
        p += ulen;
        *p++ = 4;
        memcpy(p, htmp, hlen);
-       p += hlen;
        TALLOC_FREE(htmp);
        TALLOC_FREE(utmp);