From: Marcus Boerger Date: Mon, 31 May 2004 21:43:43 +0000 (+0000) Subject: Add missing initialization X-Git-Tag: php-5.0.0RC3RC2~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21315c08b7a37b0c397773c79f3447bc80698686;p=php Add missing initialization --- diff --git a/Zend/zend_reflection_api.c b/Zend/zend_reflection_api.c index 0020272ab7..cfc84fca6c 100644 --- a/Zend/zend_reflection_api.c +++ b/Zend/zend_reflection_api.c @@ -942,6 +942,7 @@ static void _reflection_export(INTERNAL_FUNCTION_PARAMETERS, zend_class_entry *c } /* Create object */ + INIT_PZVAL(&reflector); if (object_and_properties_init(&reflector, ce_ptr, NULL) == FAILURE) { _DO_THROW("Could not create reflector"); } diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 0020272ab7..cfc84fca6c 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -942,6 +942,7 @@ static void _reflection_export(INTERNAL_FUNCTION_PARAMETERS, zend_class_entry *c } /* Create object */ + INIT_PZVAL(&reflector); if (object_and_properties_init(&reflector, ce_ptr, NULL) == FAILURE) { _DO_THROW("Could not create reflector"); }