1
0
Fork 0

coverager: avoid crash when upstream failed to compile file

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@201 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.2
Xuefer 2006-09-29 11:04:28 +00:00
parent d519ff2c5a
commit 3ac3773fc8
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ static zend_op_array *xc_compile_file_for_coverage(zend_file_handle *h, int type
zend_op_array *op_array;
op_array = origin_compile_file(h, type TSRMLS_CC);
if (XG(coveragedumper) && XG(coverages)) {
if (XG(coveragedumper) && XG(coverages) && op_array) {
xc_coverager_init_compile_result(op_array TSRMLS_CC);
}
return op_array;