summaryrefslogtreecommitdiffstats
path: root/src/p_lblock.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/p_lblock.c2
1 files changed, 1 insertions, 1 deletions
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 ;
}