summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2019-09-05 13:36:22 +0000
committerJeremy Allison <jra@samba.org>2019-09-26 18:41:26 +0000
commit299eff4ac906846e8f7f605815792a9d4418f071 (patch)
treee04f690011137a10f8561cf0cecf37e15080368d /source3/passdb
parent2d47067c86303c43f3d7267394ef8a9ce49593d3 (diff)
downloadsamba-299eff4ac906846e8f7f605815792a9d4418f071.tar.gz
s3/passdb: clang: Fix 'Value stored during initialization is never read'
Fixes: source3/passdb/pdb_interface.c:65:34: warning: Value stored to 'entry' during its initialization is never read <--[clang] struct pdb_init_function_entry *entry = backends; ^~~~~ ~~~~~~~~ /source3/passdb/pdb_interface.c:140:11: warning: Value stored to 'nt_status' during its initialization is never read <--[clang] NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL; ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c
index d42d5e52932..556839ae9d1 100644
--- a/source3/passdb/pdb_interface.c
+++ b/source3/passdb/pdb_interface.c
@@ -62,7 +62,7 @@ static bool lookup_global_sam_rid(TALLOC_CTX *mem_ctx, uint32_t rid,
NTSTATUS smb_register_passdb(int version, const char *name, pdb_init_function init)
{
- struct pdb_init_function_entry *entry = backends;
+ struct pdb_init_function_entry *entry = NULL;
if(version != PASSDB_INTERFACE_VERSION) {
DEBUG(0,("Can't register passdb backend!\n"
@@ -137,7 +137,7 @@ NTSTATUS make_pdb_method_name(struct pdb_methods **methods, const char *selected
char *module_name = smb_xstrdup(selected);
char *module_location = NULL, *p;
struct pdb_init_function_entry *entry;
- NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
+ NTSTATUS nt_status;
lazy_initialize_passdb();