]> granicus.if.org Git - php/commitdiff
initialize variable and fix segfaulting tests
authorAntony Dovgal <tony2001@php.net>
Wed, 2 Nov 2011 21:05:36 +0000 (21:05 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 2 Nov 2011 21:05:36 +0000 (21:05 +0000)
Zend/zend_compile.c

index ea75088dd3afc8ca9b3be8723717a291c6f2f224..aa32e71d45f1ea99c73dd25f30d71226e782d333 100644 (file)
@@ -3823,7 +3823,7 @@ static int zend_traits_merge_functions_to_class(zend_function *fn TSRMLS_DC, int
 {
        zend_class_entry *ce = va_arg(args, zend_class_entry*);
        int add = 0;
-       zend_function* existing_fn;
+       zend_function* existing_fn = NULL;
        zend_function fn_copy, *fn_copy_p;
        zend_function* prototype = NULL;  /* is used to determine the prototype according to the inheritance chain */