aboutsummaryrefslogtreecommitdiff
path: root/src/parse/cmd_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/cmd_parse.c')
-rwxr-xr-xsrc/parse/cmd_parse.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/parse/cmd_parse.c b/src/parse/cmd_parse.c
index 562cea3..8b52d0a 100755
--- a/src/parse/cmd_parse.c
+++ b/src/parse/cmd_parse.c
@@ -15,17 +15,16 @@ t_ast *parse_cmd(t_ast *ast, t_ftlst *rest)
{
t_ftlst *new;
- new = rest->data;
+ /* new = rest->data; */
if (ast == NULL)
{
-
ast = ast_new(AST_CMD);
ast->cmd_argv = ft_lstnew((t_token *)rest->data);
}
else
{
new = ft_lstnew((t_token *)rest->data);
- ft_lstpush_back(&ast->cmd_argv, (void *)new);
+ ft_lstpush_back(&ast->cmd_argv, new);
}
return (ast);
}