svn commit: samba r13914 - branches/SAMBA_3_0/source/nsswitch
trunk/source/nsswitch
vlendec at samba.org
vlendec at samba.org
Tue Mar 7 06:22:35 GMT 2006
Author: vlendec
Date: 2006-03-07 06:22:35 +0000 (Tue, 07 Mar 2006)
New Revision: 13914
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13914
Log:
Fix Coverity bug #151.
I think this is actually a false warning, but as I've seen it with high gcc
warning levels, lets fix it :-)
Volker
Modified:
branches/SAMBA_3_0/source/nsswitch/winbindd_pam.c
trunk/source/nsswitch/winbindd_pam.c
Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_pam.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/winbindd_pam.c 2006-03-07 05:28:32 UTC (rev 13913)
+++ branches/SAMBA_3_0/source/nsswitch/winbindd_pam.c 2006-03-07 06:22:35 UTC (rev 13914)
@@ -1062,7 +1062,7 @@
{
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';
Modified: trunk/source/nsswitch/winbindd_pam.c
===================================================================
--- trunk/source/nsswitch/winbindd_pam.c 2006-03-07 05:28:32 UTC (rev 13913)
+++ trunk/source/nsswitch/winbindd_pam.c 2006-03-07 06:22:35 UTC (rev 13914)
@@ -1062,7 +1062,7 @@
{
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';
More information about the samba-cvs
mailing list