summaryrefslogtreecommitdiffstats
path: root/src/m_loop.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-08 19:37:19 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-08 19:37:19 +0200
commit332a55e859e8b213a9680b06022e4812d190951f (patch)
treeddc7f671efb8d6bc7b37eb07f394c9405fe15233 /src/m_loop.c
parentRework in progress (diff)
download42-minishell-332a55e859e8b213a9680b06022e4812d190951f.tar.gz
42-minishell-332a55e859e8b213a9680b06022e4812d190951f.tar.bz2
42-minishell-332a55e859e8b213a9680b06022e4812d190951f.tar.xz
42-minishell-332a55e859e8b213a9680b06022e4812d190951f.tar.zst
42-minishell-332a55e859e8b213a9680b06022e4812d190951f.zip
Pretty bav
Diffstat (limited to '')
-rw-r--r--src/m_loop.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/m_loop.c b/src/m_loop.c
index 9ecea98..b3c06d0 100644
--- a/src/m_loop.c
+++ b/src/m_loop.c
@@ -39,11 +39,10 @@ static void
ptr = msh->curr;
while (ptr != NULL)
{
- ft_printf("[%s]\n", ptr->lblock);
if ((previf == 0) || (previf == 1 && msh->ret == 0) ||
(previf == 2 && msh->ret != 0))
{
- if ((msh->com = s_com_new(msh->curr->lblock, msh)) == NULL)
+ if ((msh->com = s_com_new(ptr->lblock, msh)) == NULL)
break ;
e_line(msh);
}