From: Shaleen Bathla Date: Wed, 21 Feb 2024 12:56:11 +0000 (+0530) Subject: s3: winbindd: remove double initialization X-Git-Tag: tdb-1.4.11~1694 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cde71074e0145a76ea1b34a318e76bbc0450d90f;p=thirdparty%2Fsamba.git s3: winbindd: remove double initialization remove re-initialization of entry variable in for loop Signed-off-by: Shaleen Bathla Reviewed-by: Volker Lendecke Reviewed-by: Noel Power --- diff --git a/source3/winbindd/nss_info.c b/source3/winbindd/nss_info.c index 9c502e84ef0..3b58ca29324 100644 --- a/source3/winbindd/nss_info.c +++ b/source3/winbindd/nss_info.c @@ -32,7 +32,7 @@ static struct nss_domain_entry *nss_domain_list = NULL; static struct nss_function_entry *nss_get_backend(const char *name ) { - struct nss_function_entry *entry = backends; + struct nss_function_entry *entry = NULL; for(entry = backends; entry; entry = entry->next) { if ( strequal(entry->name, name) )