]> granicus.if.org Git - php/commitdiff
Avoid possible uninitialized value assignment
authorReeze Xia <reeze@php.net>
Mon, 18 May 2015 04:49:42 +0000 (12:49 +0800)
committerReeze Xia <reeze@php.net>
Mon, 18 May 2015 04:49:42 +0000 (12:49 +0800)
ext/reflection/php_reflection.c

index 900241fc9b91123f58cd05c804195f1ec3e93933..92f67972d213ec36bdd1306b116eff1af7029d78 100644 (file)
@@ -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;