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

index 4d2ea633b66b2c64148b91d12cd44e9f707a52b9..33000ab9f6b0e5927659224f3e2358611bb5efeb 100644 (file)
@@ -713,7 +713,7 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
                if (calling_scope && (colon = strstr(fname, "::")) != NULL) {
                        int clen = colon - fname;
                        int mlen = fname_len - clen - 2;
-                       zend_class_entry **pce, *ce_child;
+                       zend_class_entry **pce, *ce_child = NULL;
                        if (zend_lookup_class(fname, clen, &pce TSRMLS_CC) == SUCCESS) {
                                ce_child = *pce;
                        } else {