1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-22 05:57:43 +03:00

s3/passed: clang: Fix 'Value stored during its initialization is never read'

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>
This commit is contained in:
Noel Power 2019-09-05 15:40:50 +00:00 committed by Jeremy Allison
parent b08ec1903d
commit fba666cf2a

View 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;