diff options
Diffstat (limited to 'src/s_line.c')
-rw-r--r-- | src/s_line.c | 8 |
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; |