]> granicus.if.org Git - php/commitdiff
Add missing initialization
authorMarcus Boerger <helly@php.net>
Mon, 31 May 2004 21:43:43 +0000 (21:43 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 31 May 2004 21:43:43 +0000 (21:43 +0000)
Zend/zend_reflection_api.c
ext/reflection/php_reflection.c

index 0020272ab7ba6eeb23e0db34cc73acd6256fe70a..cfc84fca6c0bde8e6018305b929f1091d5c16925 100644 (file)
@@ -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");
        }
index 0020272ab7ba6eeb23e0db34cc73acd6256fe70a..cfc84fca6c0bde8e6018305b929f1091d5c16925 100644 (file)
@@ -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");
        }