Skip to content

Commit

Permalink
s3/libsmb: clang: value stored to 'idx_current' is never read
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
  • Loading branch information
noelpower authored and jrasamba committed Sep 26, 2019
1 parent 388f280 commit 2138bd9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion source3/libsmb/trusts_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2138bd9

Please sign in to comment.