]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: winbindd: remove double initialization
authorShaleen Bathla <shaleen.bathla@oracle.com>
Wed, 21 Feb 2024 12:56:11 +0000 (18:26 +0530)
committerNoel Power <npower@samba.org>
Thu, 22 Feb 2024 09:47:44 +0000 (09:47 +0000)
remove re-initialization of entry variable in for loop

Signed-off-by: Shaleen Bathla <shaleen.bathla@oracle.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/winbindd/nss_info.c

index 9c502e84ef0609c8771bc63db0522ae69000d921..3b58ca2932414bb446d07ec3e97a0aa55e90419c 100644 (file)
@@ -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) )