From: Antony Dovgal Date: Mon, 30 Apr 2007 21:39:48 +0000 (+0000) Subject: initialize optional parameters X-Git-Tag: RELEASE_1_2_0~192 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e9fca181cb926082dcb49dbd84423be7f10992e;p=php initialize optional parameters --- diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index 00ca78d578..d11c6721a2 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;