From 0b5b5e4d7ee203b7fe7f47e6542635b40c7ec656 Mon Sep 17 00:00:00 2001 From: Maieul BOYER Date: Mon, 1 Jul 2024 13:01:44 +0200 Subject: [PATCH] Working on the ast_from_node function (redirected statements) --- ast/src/from_node.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ast/src/from_node.c b/ast/src/from_node.c index 825e30b5..66225091 100644 --- a/ast/src/from_node.c +++ b/ast/src/from_node.c @@ -1052,8 +1052,7 @@ t_error build_sym_redirected_statement(t_parse_node self, t_const_str input, t_a { if (ast_from_node(ts_node_child(self, i++), input, &ret)) return (ast_free(ret_tmp), ERROR); - else - ret_tmp = NULL; + continue; } if (ast_from_node(ts_node_child(self, i++), input, &tmp)) return ((void)!((ret != ret_tmp) && (ast_free(ret_tmp), true)), ast_free(ret), ERROR);