From 43a40e74860e277ed2e70b69cdf492a6d8d47ba7 Mon Sep 17 00:00:00 2001 From: Scott MacVicar Date: Tue, 15 Apr 2008 00:32:51 +0000 Subject: [PATCH] Fixed bug #44722 (Segfault setting a null session path) --- ext/session/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.50.1