summaryrefslogtreecommitdiffstats
path: root/src/s_line.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-14 15:24:12 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-14 15:24:12 +0200
commit294adc19078fa8d196ee1d787ec24619f9976178 (patch)
tree9446807d7ee909046f1cb9f2bd1c7711bbe0b857 /src/s_line.c
parentRemoved bloat (diff)
download42-minishell-294adc19078fa8d196ee1d787ec24619f9976178.tar.gz
42-minishell-294adc19078fa8d196ee1d787ec24619f9976178.tar.bz2
42-minishell-294adc19078fa8d196ee1d787ec24619f9976178.tar.xz
42-minishell-294adc19078fa8d196ee1d787ec24619f9976178.tar.zst
42-minishell-294adc19078fa8d196ee1d787ec24619f9976178.zip
I must split
Diffstat (limited to 'src/s_line.c')
-rw-r--r--src/s_line.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/s_line.c b/src/s_line.c
index 5fe9a96..b47b453 100644
--- a/src/s_line.c
+++ b/src/s_line.c
@@ -57,13 +57,6 @@ void
{
s_com_destroy(&tmp->com);
}
- /* ft_memdel((void*)&tmp->com); */
- /* if (tmp->argv) */
- /* ft_delwords(tmp->argv); */
- /* if (tmp->redir != 0) */
- /* ft_memdel((void*)&tmp->rdrpath); */
- /* if (tmp->env_fork != NULL) */
- /* ft_delwords(tmp->env_fork); */
ft_memdel((void*)&tmp);
tmp = renext;
}
@@ -78,6 +71,7 @@ t_line
if ((link = (t_line*)malloc(sizeof(t_line))) == NULL)
return (NULL);
+ link->nextif = 0;
link->com = NULL;
link->pipes = NULL;
link->next = NULL;