From: Scott MacVicar Date: Tue, 15 Apr 2008 00:32:51 +0000 (+0000) Subject: Fixed bug #44722 (Segfault setting a null session path) X-Git-Tag: RELEASE_2_0_0b1~391 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43a40e74860e277ed2e70b69cdf492a6d8d47ba7;p=php Fixed bug #44722 (Segfault setting a null session path) --- diff --git a/ext/session/session.c b/ext/session/session.c index 4ae18eca52..c23b64af5c 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1516,7 +1516,7 @@ static PHP_FUNCTION(session_set_save_handler) Return the current save path passed to module_name. If newname is given, the save path is replaced with newname */ static PHP_FUNCTION(session_save_path) { - char *name; + char *name = NULL; int name_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s&", &name, &name_len, UG(utf8_conv)) == FAILURE) {