r13914: Fix Coverity bug #151.
authorVolker Lendecke <vlendec@samba.org>
Tue, 7 Mar 2006 06:22:35 +0000 (06:22 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:10:59 +0000 (11:10 -0500)
I think this is actually a false warning, but as I've seen it with high gcc
warning levels, lets fix it :-)

Volker
(This used to be commit 3f671033bca7a025f9639728a0a0a0adede6ed35)

source3/nsswitch/winbindd_pam.c

index dc8a5c47d99d9529379e2f9106f1c3d3a1f6216e..f72c442e8bb983a7a73f8ac28fa684d5d1b9614f 100644 (file)
@@ -1062,7 +1062,7 @@ enum winbindd_result winbindd_dual_pam_auth(struct winbindd_domain *domain,
 {
        NTSTATUS result = NT_STATUS_LOGON_FAILURE;
        fstring name_domain, name_user;
-       NET_USER_INFO_3 *info3;
+       NET_USER_INFO_3 *info3 = NULL;
        
        /* Ensure null termination */
        state->request.data.auth.user[sizeof(state->request.data.auth.user)-1]='\0';