diff options
author | Xinchen Hui <laruence@php.net> | 2012-08-15 00:44:47 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2012-08-15 00:44:47 +0800 |
commit | a5a409ebff1037f4b00fdf6d46dd61c72cb6d315 (patch) | |
tree | c184848f64944b43f19413d5719b2f2cc15f1e72 | |
parent | e1c610fb44385cd2894be1957cc32f7cccc4b476 (diff) | |
download | php-git-a5a409ebff1037f4b00fdf6d46dd61c72cb6d315.tar.gz |
Fixed bug (segfault due to retval is not initialized)
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | ext/session/mod_user.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -26,6 +26,9 @@ PHP NEWS . Fixed bug #62715 (ReflectionParameter::isDefaultValueAvailable() wrong result). (Laruence) +- Session: + . Fixed bug (segfault due to retval is not initialized). (Laruence) + - SPL: . Fixed bug #62616 (ArrayIterator::count() from IteratorIterator instance gives Segmentation fault). (Laruence, Gustavo) diff --git a/ext/session/mod_user.c b/ext/session/mod_user.c index 17af624998..c187e26818 100644 --- a/ext/session/mod_user.c +++ b/ext/session/mod_user.c @@ -63,7 +63,7 @@ static zval *ps_call_handler(zval *func, int argc, zval **argv TSRMLS_DC) } #define STDVARS1 \ - zval *retval; \ + zval *retval = NULL; \ int ret = FAILURE #define STDVARS \ |