From 8b5866866cb216be124f3e7043981ddc300d8870 Mon Sep 17 00:00:00 2001 From: Scott MacVicar Date: Tue, 15 Apr 2008 00:39:43 +0000 Subject: [PATCH] Fixed bug #44719 (More uninitialised values causing wierd errors) --- ext/session/session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.40.0