From 294adc19078fa8d196ee1d787ec24619f9976178 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 14 Aug 2020 15:24:12 +0200 Subject: I must split --- src/s_line.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/s_line.c') 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; -- cgit v1.2.3