]> granicus.if.org Git - php/commitdiff
- Fix valgrind report (Conditional jump or move depends on uninitialised value)
authorFelipe Pena <felipe@php.net>
Thu, 8 May 2008 15:39:35 +0000 (15:39 +0000)
committerFelipe Pena <felipe@php.net>
Thu, 8 May 2008 15:39:35 +0000 (15:39 +0000)
Zend/zend_API.c

index aa300fc1e276d02fcd9204c78d8425b87b29570c..efedc85f5d9e1f97ec20fce3dc90461fa544e207 100644 (file)
@@ -2890,7 +2890,7 @@ ZEND_API zend_bool zend_is_callable_ex(zval *callable, uint check_flags, zval *c
                        {
                                zend_class_entry *ce = NULL;
                                zval **method;
-                               zval **obj;
+                               zval **obj = NULL;
 
                                if (zend_hash_num_elements(Z_ARRVAL_P(callable)) == 2 &&
                                        zend_hash_index_find(Z_ARRVAL_P(callable), 0, (void **) &obj) == SUCCESS &&