summaryrefslogtreecommitdiffstats
path: root/src/m_loop.c
diff options
context:
space:
mode:
authorjoe <rbousset@42lyon.fr>2020-12-04 16:56:47 +0100
committerjoe <rbousset@42lyon.fr>2020-12-04 16:56:47 +0100
commitd9420a4ed5917bb14d6263e9b1283324b540099d (patch)
tree2350234371ee99ac7e3a6e081da7360c1ad8780f /src/m_loop.c
parentNo more step (diff)
download42-minishell-d9420a4ed5917bb14d6263e9b1283324b540099d.tar.gz
42-minishell-d9420a4ed5917bb14d6263e9b1283324b540099d.tar.bz2
42-minishell-d9420a4ed5917bb14d6263e9b1283324b540099d.tar.xz
42-minishell-d9420a4ed5917bb14d6263e9b1283324b540099d.tar.zst
42-minishell-d9420a4ed5917bb14d6263e9b1283324b540099d.zip
in progress
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 b249935..c7ca9cc 100644
--- a/src/m_loop.c
+++ b/src/m_loop.c
@@ -142,6 +142,7 @@ unsigned char m_loop(int fd, t_msh *msh)
gnl = 1;
msh->curr_hist_ptr = hist;
c_get_msh(1, msh);
+ c_set_ptr(TRUE, 0, msh);
signal(SIGINT, c_signal_int);
signal(SIGQUIT, c_signal_ign);
while (gnl > 0)