]> granicus.if.org Git - php/commitdiff
MFH: initialize optional params
authorAntony Dovgal <tony2001@php.net>
Mon, 30 Apr 2007 21:40:02 +0000 (21:40 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 30 Apr 2007 21:40:02 +0000 (21:40 +0000)
ext/ldap/ldap.c

index de2b9e8a7a2bb846fd8594417ddd0ec0d09c5dc6..e9040442041dcb4f51d1e6298950c07346620a62 100644 (file)
@@ -376,9 +376,9 @@ PHP_FUNCTION(ldap_connect)
        int hostlen;
        long port = 389; /* Default port */
 #ifdef HAVE_ORALDAP
-       char *wallet, *walletpasswd;
-       int walletlen, walletpasswdlen;
-       long authmode;
+       char *wallet = NULL, *walletpasswd = NULL;
+       int walletlen = 0, walletpasswdlen = 0;
+       long authmode = GSLC_SSL_NO_AUTH;
        int ssl=0;
 #endif
        ldap_linkdata *ld;