]> granicus.if.org Git - php/commitdiff
Fixed bug #44722 (Segfault setting a null session path)
authorScott MacVicar <scottmac@php.net>
Tue, 15 Apr 2008 00:32:51 +0000 (00:32 +0000)
committerScott MacVicar <scottmac@php.net>
Tue, 15 Apr 2008 00:32:51 +0000 (00:32 +0000)
ext/session/session.c

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