From: Scott MacVicar Date: Tue, 15 Apr 2008 00:39:43 +0000 (+0000) Subject: Fixed bug #44719 (More uninitialised values causing wierd errors) X-Git-Tag: RELEASE_2_0_0b1~390 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b5866866cb216be124f3e7043981ddc300d8870;p=php Fixed bug #44719 (More uninitialised values causing wierd errors) --- diff --git a/ext/session/session.c b/ext/session/session.c index c23b64af5c..12678fff91 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1626,7 +1626,7 @@ static PHP_FUNCTION(session_regenerate_id) Return the current cache limiter. If new_cache_limited is given, the current cache_limiter is replaced with new_cache_limiter */ static PHP_FUNCTION(session_cache_limiter) { - char *limiter; + char *limiter = NULL; int limiter_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s&", &limiter, &limiter_len, UG(utf8_conv)) == FAILURE) { @@ -1646,7 +1646,7 @@ static PHP_FUNCTION(session_cache_limiter) static PHP_FUNCTION(session_cache_expire) { /* Expires is really a numeric, but the alter_ini_entry method wants a string */ - char *expires; + char *expires = NULL; int expires_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s&", &expires, &expires_len, UG(utf8_conv)) == FAILURE) {