diff options
author | Xinchen Hui <laruence@gmail.com> | 2016-06-13 17:36:03 -0700 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2016-06-13 17:36:03 -0700 |
commit | 6166c26f1c43d4686139c6d207a73d0ccd6b695c (patch) | |
tree | 067385f2033aeae2ab1ee3fd568b0f6c110e1763 /Zend/zend_ast.h | |
parent | aeb3948f3ce360f8ff77ba84a9ddef5dda522c5d (diff) | |
download | php-git-6166c26f1c43d4686139c6d207a73d0ccd6b695c.tar.gz |
Cleanup
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 d5396e7041..3efadf7164 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); - if (list->child[list->children - 1] == NULL) { + while (list->children && list->child[list->children - 1] == NULL) { list->children--; } } |