]> granicus.if.org Git - php/commitdiff
Fixed bug #44719 (More uninitialised values causing wierd errors)
authorScott MacVicar <scottmac@php.net>
Tue, 15 Apr 2008 00:39:43 +0000 (00:39 +0000)
committerScott MacVicar <scottmac@php.net>
Tue, 15 Apr 2008 00:39:43 +0000 (00:39 +0000)
ext/session/session.c

index c23b64af5cc7156835734a1a94ff075d533edeac..12678fff918b4e4857f89c6e1dc9e5a4e5a7ea40 100644 (file)
@@ -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) {