From: Antony Dovgal Date: Mon, 30 Apr 2007 21:40:02 +0000 (+0000) Subject: MFH: initialize optional params X-Git-Tag: php-5.2.2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96964359af90bad9c51041ca6839a46b317d8142;p=php MFH: initialize optional params --- diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index de2b9e8a7a..e904044204 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -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;