diff options
author | Noel Power <noel.power@suse.com> | 2019-09-13 13:57:16 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-09-26 18:41:27 +0000 |
commit | 8ea0835a6cbe8721780929b9946de65cd87dc26d (patch) | |
tree | ba8b4f4460a104ae5b83f045c8fd28ac7f946ff5 /source3/auth | |
parent | 9759e96ff1dc8741222eb6794dc01bd5b65c282d (diff) | |
download | samba-8ea0835a6cbe8721780929b9946de65cd87dc26d.tar.gz |
s3/auth: clang: Fix 'Value stored during its initialization is never read'
Fixes:
source3/auth/auth.c:38:35: warning: Value stored to 'entry' during its initialization is never read <--[clang]
struct auth_init_function_entry *entry = auth_backends;
^~~~~ ~~~~~~~~~~~~~
1 warning generated.
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/auth/auth.c b/source3/auth/auth.c index ce2cb0d75bf..3b523c0fa18 100644 --- a/source3/auth/auth.c +++ b/source3/auth/auth.c @@ -35,7 +35,7 @@ static struct auth_init_function_entry *auth_find_backend_entry(const char *name NTSTATUS smb_register_auth(int version, const char *name, auth_init_function init) { - struct auth_init_function_entry *entry = auth_backends; + struct auth_init_function_entry *entry = NULL; if (version != AUTH_INTERFACE_VERSION) { DEBUG(0,("Can't register auth_method!\n" |