From 6dff867517215c35cf94149826d4405a657422b4 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 22 Oct 2020 00:14:59 +0200 Subject: Work to do --- src/p_lblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_lblock.c b/src/p_lblock.c index b8341cd..36f2e12 100644 --- a/src/p_lblock.c +++ b/src/p_lblock.c @@ -80,9 +80,9 @@ static int8_t p_loop(char *words[], t_msh *msh) { if ((link = s_line_new(NULL, 0)) == NULL) return (-1); + s_line_add_back(&msh->curr, link); if ((s_split_pipes(words[i], msh)) == NULL) return (-1); - s_line_add_back(&msh->curr, link); i++; continue ; } -- cgit v1.2.3