com php-src: Avoid possible uninitialized value assignment: ext/reflection/php_reflection.c

From: Date: Mon, 18 May 2015 04:49:42 +0000
Subject: com php-src: Avoid possible uninitialized value assignment: ext/reflection/php_reflection.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86788@lists.php.net to get a copy of this message
Commit: 104f6c5ec60c6adcaad2e4a087527cde9bd983d5 Author: Reeze Xia <reeze@php.net> Mon, 18 May 2015 12:49:42 +0800 Parents: ab680e7f6e150a27636dd059eb30768696feca2a Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=104f6c5ec60c6adcaad2e4a087527cde9bd983d5 Log: Avoid possible uninitialized value assignment Changed paths: M ext/reflection/php_reflection.c Diff: diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 900241f..92f6797 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -2157,7 +2157,7 @@ ZEND_METHOD(reflection_generator, getTrace) zend_generator *root_generator; zend_execute_data *ex_backup = EG(current_execute_data); zend_execute_data *ex = generator->execute_data; - zend_execute_data *root_prev, *cur_prev; + zend_execute_data *root_prev = NULL, *cur_prev; if (zend_parse_parameters(ZEND_NUM_ARGS(), "|l", &options) == FAILURE) { return;

« previous php.cvs (#86788) next »