Skip to content

Commit db307ea

Browse files
committed
Dereference child1 only after NULL check
1 parent d8200e4 commit db307ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_ast.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_list_1(zend_ast_kind kind, zen
276276
ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_list_2(zend_ast_kind kind, zend_ast *child1, zend_ast *child2) {
277277
zend_ast *ast;
278278
zend_ast_list *list;
279-
uint32_t lineno = zend_ast_get_lineno(child1);
279+
uint32_t lineno;
280280

281281
ast = zend_ast_alloc(zend_ast_list_size(4));
282282
list = (zend_ast_list *) ast;

0 commit comments

Comments
 (0)