]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/libsmb: clang: value stored to 'idx_current' is never read
authorNoel Power <noel.power@suse.com>
Thu, 5 Sep 2019 14:16:57 +0000 (14:16 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 26 Sep 2019 18:41:28 +0000 (18:41 +0000)
Fixes:

source3/libsmb/trusts_util.c:602:2: warning: Value stored to 'idx_current' is never read <--[clang]
        idx_current = idx;
        ^             ~~~

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/trusts_util.c

index 0f0541a26b9c3df033c8828e3ec4bbe633a5e1b4..55e3c74494ab0b167ce8fc8f4d81a72e2ae20b1c 100644 (file)
@@ -599,7 +599,6 @@ NTSTATUS trust_pw_change(struct netlogon_creds_cli_context *context,
         * Now we verify the new password.
         */
        idx = 0;
-       idx_current = idx;
        nt_hashes[idx++] = current_nt_hash;
        num_nt_hashes = idx;
        status = netlogon_creds_cli_lck_auth(context, b,