summaryrefslogtreecommitdiffstats
path: root/src/m_loop.c
diff options
context:
space:
mode:
authorjoe <rbousset@42lyon.fr>2020-12-01 18:36:35 +0100
committerjoe <rbousset@42lyon.fr>2020-12-01 18:36:35 +0100
commit4f3d3364de8f1c23819051cb9f392fc651565b95 (patch)
treed7574f821dc02a27dcc5a0b8b63cf40e60dd023e /src/m_loop.c
parentBav (diff)
download42-minishell-4f3d3364de8f1c23819051cb9f392fc651565b95.tar.gz
42-minishell-4f3d3364de8f1c23819051cb9f392fc651565b95.tar.bz2
42-minishell-4f3d3364de8f1c23819051cb9f392fc651565b95.tar.xz
42-minishell-4f3d3364de8f1c23819051cb9f392fc651565b95.tar.zst
42-minishell-4f3d3364de8f1c23819051cb9f392fc651565b95.zip
commit
Diffstat (limited to 'src/m_loop.c')
-rw-r--r--src/m_loop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/m_loop.c b/src/m_loop.c
index 6444c1b..a5e816d 100644
--- a/src/m_loop.c
+++ b/src/m_loop.c
@@ -152,6 +152,7 @@ unsigned char m_loop(int fd, t_msh *msh)
if (fd == STDIN_FILENO)
m_handle_hist(hist, line, msh);
m_parse_and_run_line(line, 0, msh);
+ c_set_ptr(TRUE, 0, msh);
}
else
ft_memdel((void*)&line);