]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/passdb: clang: Fix 'Value stored during initialization is never read'
authorNoel Power <noel.power@suse.com>
Thu, 5 Sep 2019 13:34:05 +0000 (13:34 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 26 Sep 2019 18:41:26 +0000 (18:41 +0000)
Fixes:

source3/passdb/pdb_tdb.c:718:18: warning: Value stored to 'nt_status' during its initialization is never read <--[clang]
        NTSTATUS        nt_status = NT_STATUS_UNSUCCESSFUL;
                        ^~~~~~~~~   ~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

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

index 0c97e70bad49cca7a684532faa1cd5cf326650af..7488d99a94ee2192e94bbf7cb3205f1b240860a8 100644 (file)
@@ -715,7 +715,7 @@ static bool tdb_delete_samacct_only( struct samu *sam_pass )
 static NTSTATUS tdbsam_delete_sam_account(struct pdb_methods *my_methods,
                                          struct samu *sam_pass)
 {
-       NTSTATUS        nt_status = NT_STATUS_UNSUCCESSFUL;
+       NTSTATUS        nt_status;
        fstring         keystr;
        uint32_t        rid;
        fstring         name;