summaryrefslogtreecommitdiff
path: root/Zend/zend_ast.h
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2016-06-14 14:02:34 +0800
committerXinchen Hui <laruence@gmail.com>2016-06-14 14:02:34 +0800
commit9c8e1c03b97fea34432ed8a91e8ddd9b9d20a649 (patch)
tree4a2ffbaadcd5d8c718cedd20d922e9f16ab473eb /Zend/zend_ast.h
parent14e790a0753dce4dfaeff1b2d8f9800b519917c1 (diff)
downloadphp-git-9c8e1c03b97fea34432ed8a91e8ddd9b9d20a649.tar.gz
Only allow single comma in tail
Diffstat (limited to 'Zend/zend_ast.h')
-rw-r--r--Zend/zend_ast.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_ast.h b/Zend/zend_ast.h
index 3efadf7164..de67c50c9f 100644
--- a/Zend/zend_ast.h
+++ b/Zend/zend_ast.h
@@ -268,7 +268,7 @@ static zend_always_inline zend_ast *zend_ast_create_cast(uint32_t type, zend_ast
}
static zend_always_inline void zend_ast_list_rtrim(zend_ast *ast) {
zend_ast_list *list = zend_ast_get_list(ast);
- while (list->children && list->child[list->children - 1] == NULL) {
+ if (list->children && list->child[list->children - 1] == NULL) {
list->children--;
}
}