summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-22 00:14:59 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-22 00:14:59 +0200
commit6dff867517215c35cf94149826d4405a657422b4 (patch)
treefc1ab934bbb5118840af79204e6d680e7730c0f0
parentRemoved debug printf (diff)
download42-minishell-6dff867517215c35cf94149826d4405a657422b4.tar.gz
42-minishell-6dff867517215c35cf94149826d4405a657422b4.tar.bz2
42-minishell-6dff867517215c35cf94149826d4405a657422b4.tar.xz
42-minishell-6dff867517215c35cf94149826d4405a657422b4.tar.zst
42-minishell-6dff867517215c35cf94149826d4405a657422b4.zip
Work to do
-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 ;
}