aboutsummaryrefslogtreecommitdiff
path: root/src/parse/redir_parse.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-06-15 13:47:18 +0200
committerCharles <sircharlesaze@gmail.com>2020-06-15 13:47:18 +0200
commitc64a7a8fca764c1f0fe8e4a8e28526e1de49f707 (patch)
tree8ba0a8a2f461369a9049cda33d7c09515f94e836 /src/parse/redir_parse.c
parentb8623ff168880845c745da62f7e9a840f0541809 (diff)
downloadminishell-c64a7a8fca764c1f0fe8e4a8e28526e1de49f707.tar.gz
minishell-c64a7a8fca764c1f0fe8e4a8e28526e1de49f707.tar.bz2
minishell-c64a7a8fca764c1f0fe8e4a8e28526e1de49f707.zip
Fixing by removing debug code in parser
Diffstat (limited to 'src/parse/redir_parse.c')
-rwxr-xr-xsrc/parse/redir_parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/redir_parse.c b/src/parse/redir_parse.c
index bdcb3ab..c92d639 100755
--- a/src/parse/redir_parse.c
+++ b/src/parse/redir_parse.c
@@ -12,7 +12,7 @@ t_ast *parse_redir(t_ast *ast, t_ftlst *rest)
{
t_ftlst *new;
- new = rest->data;
+ /* new = rest->data; */
if (ast == NULL)
{
ast = ast_new(AST_CMD);
@@ -21,7 +21,7 @@ t_ast *parse_redir(t_ast *ast, t_ftlst *rest)
else
{
new = ft_lstnew((t_token *)rest->data);
- ft_lstpush_back(&ast->redirs, (void *)new);
+ ft_lstpush_back(&ast->redirs, new);
}
return (ast);
}