diff options
author | Xinchen Hui <laruence@gmail.com> | 2016-06-14 14:02:34 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2016-06-14 14:02:34 +0800 |
commit | 9c8e1c03b97fea34432ed8a91e8ddd9b9d20a649 (patch) | |
tree | 4a2ffbaadcd5d8c718cedd20d922e9f16ab473eb /Zend/zend_ast.h | |
parent | 14e790a0753dce4dfaeff1b2d8f9800b519917c1 (diff) | |
download | php-git-9c8e1c03b97fea34432ed8a91e8ddd9b9d20a649.tar.gz |
Only allow single comma in tail
Diffstat (limited to 'Zend/zend_ast.h')
-rw-r--r-- | Zend/zend_ast.h | 2 |
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--; } } |