diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-22 20:06:42 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-22 20:06:42 +0200 |
commit | cb1423079805f4f229782197f510a3138fbe1ee6 (patch) | |
tree | 62b1c5178162bbf9bb2d092f711a5ed8bd2f640c /src/m_loop.c | |
parent | On the way but norm this shit (diff) | |
download | 42-minishell-cb1423079805f4f229782197f510a3138fbe1ee6.tar.gz 42-minishell-cb1423079805f4f229782197f510a3138fbe1ee6.tar.bz2 42-minishell-cb1423079805f4f229782197f510a3138fbe1ee6.tar.xz 42-minishell-cb1423079805f4f229782197f510a3138fbe1ee6.tar.zst 42-minishell-cb1423079805f4f229782197f510a3138fbe1ee6.zip |
normed
Diffstat (limited to '')
-rw-r--r-- | src/m_loop.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/m_loop.c b/src/m_loop.c index a2cf621..732c005 100644 --- a/src/m_loop.c +++ b/src/m_loop.c @@ -54,10 +54,8 @@ static void m_parse_and_run_line(char line[], uint8_t previf, t_msh *msh) continue ; } e_line_block(msh); - if (msh->com != NULL) - s_com_destroy(&msh->com); - if (msh->pipes != NULL) - s_lpipes_clear(&msh->pipes); + s_com_destroy(&msh->com); + s_lpipes_clear(&msh->pipes); } previf = ptr->nextif; ptr = ptr->next; |