Hans Leidekker : wldap32: Don't return uninitialised values.

Alexandre Julliard julliard at wine.codeweavers.com
Sat Apr 8 13:12:30 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 34282fb5189babbe981b7033501b5ce943f3811b
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=34282fb5189babbe981b7033501b5ce943f3811b

Author: Hans Leidekker <hans at it.vu.nl>
Date:   Sat Apr  8 16:11:54 2006 +0200

wldap32: Don't return uninitialised values.

---

 dlls/wldap32/init.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wldap32/init.c b/dlls/wldap32/init.c
index da2c9d8..31b832d 100644
--- a/dlls/wldap32/init.c
+++ b/dlls/wldap32/init.c
@@ -533,7 +533,7 @@ WLDAP32_LDAP *ldap_sslinitA( PCHAR hostn
 WLDAP32_LDAP *ldap_sslinitW( PWCHAR hostname, ULONG portnumber, int secure )
 {
 #ifdef HAVE_LDAP
-    WLDAP32_LDAP *ld;
+    WLDAP32_LDAP *ld = NULL;
     char *hostnameU = NULL, *url = NULL;
 
     TRACE( "(%s, %ld, 0x%08x)\n", debugstr_w(hostname), portnumber, secure );




More information about the wine-cvs mailing list