aboutsummaryrefslogtreecommitdiff
path: root/src/parse/cmd_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/cmd_parse.c')
-rwxr-xr-x[-rw-r--r--]src/parse/cmd_parse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parse/cmd_parse.c b/src/parse/cmd_parse.c
index 07070a1..562cea3 100644..100755
--- a/src/parse/cmd_parse.c
+++ b/src/parse/cmd_parse.c
@@ -18,12 +18,13 @@ t_ast *parse_cmd(t_ast *ast, t_ftlst *rest)
new = rest->data;
if (ast == NULL)
{
+
ast = ast_new(AST_CMD);
ast->cmd_argv = ft_lstnew((t_token *)rest->data);
}
else
{
- new = ft_lstnew(rest->data);
+ new = ft_lstnew((t_token *)rest->data);
ft_lstpush_back(&ast->cmd_argv, (void *)new);
}
return (ast);