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

index 00ca78d5788fa1a9388018ab36d7e5055181ab97..d11c6721a2cec1a4d1d618229c3451962210f931 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;