]> granicus.if.org Git - php/commitdiff
Dereference child1 only after NULL check
authorDmitry Stogov <dmitry@zend.com>
Mon, 2 Apr 2018 19:16:58 +0000 (22:16 +0300)
committerDmitry Stogov <dmitry@zend.com>
Mon, 2 Apr 2018 19:16:58 +0000 (22:16 +0300)
Zend/zend_ast.c

index bc7eac148cb38b176e7daa477d82bff05ac332b0..e4ffbed60751d6be9a22b766f57719b26327a1ec 100644 (file)
@@ -276,7 +276,7 @@ ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_list_1(zend_ast_kind kind, zen
 ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_list_2(zend_ast_kind kind, zend_ast *child1, zend_ast *child2) {
        zend_ast *ast;
        zend_ast_list *list;
-       uint32_t lineno = zend_ast_get_lineno(child1);
+       uint32_t lineno;
 
        ast = zend_ast_alloc(zend_ast_list_size(4));
        list = (zend_ast_list *) ast;