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

source3/passdb/passdb.c:2502:11: warning: Value stored to 'status' during its initialization is never read <--[clang]
        NTSTATUS status = NT_STATUS_INTERNAL_ERROR;
                 ^~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~~

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

index 401a11135cde68648373571cdf45f601f272dddc..8ed1bafcea32083c2a1dabf2ade26f00310c9330 100644 (file)
@@ -2499,7 +2499,7 @@ NTSTATUS pdb_get_trust_credentials(const char *netbios_domain,
                                   struct cli_credentials **_creds)
 {
        TALLOC_CTX *frame = talloc_stackframe();
-       NTSTATUS status = NT_STATUS_INTERNAL_ERROR;
+       NTSTATUS status;
        struct loadparm_context *lp_ctx;
        enum netr_SchannelType channel;
        time_t last_set_time;