summaryrefslogtreecommitdiff
path: root/Zend/zend_ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_ast.c')
-rw-r--r--Zend/zend_ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_ast.c b/Zend/zend_ast.c
index 1b85d718ae..876200bee8 100644
--- a/Zend/zend_ast.c
+++ b/Zend/zend_ast.c
@@ -1158,7 +1158,7 @@ tail_call:
} else {
zend_ast_export_indent(str, indent);
smart_str_appends(str, "} else ");
- if (ast->child[1]->kind == ZEND_AST_IF) {
+ if (ast->child[1] && ast->child[1]->kind == ZEND_AST_IF) {
list = (zend_ast_list*)ast->child[1];
goto tail_call;
} else {