]> granicus.if.org Git - php/commitdiff
make sure ce_child is properly initialized
authorAntony Dovgal <tony2001@php.net>
Wed, 18 Jan 2006 21:06:18 +0000 (21:06 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 18 Jan 2006 21:06:18 +0000 (21:06 +0000)
Zend/zend_execute_API.c

index 4c8e0e33911508156128ff18ec31b9a67d37f149..d9d7333264fb496c83279b3417ff85720d641bfa 100644 (file)
@@ -759,7 +759,7 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
                        }
                }
                if (calling_scope && colon != NULL) {
-                       zend_class_entry **pce, *ce_child;
+                       zend_class_entry **pce, *ce_child = NULL;
                        if (zend_u_lookup_class(Z_TYPE_P(fci->function_name), Z_STRVAL_P(fci->function_name), clen, &pce TSRMLS_CC) == SUCCESS) {
                                ce_child = *pce;
                        } else {