summaryrefslogtreecommitdiffstats
path: root/src/s_com.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-22 20:06:42 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-22 20:06:42 +0200
commitcb1423079805f4f229782197f510a3138fbe1ee6 (patch)
tree62b1c5178162bbf9bb2d092f711a5ed8bd2f640c /src/s_com.c
parentOn the way but norm this shit (diff)
download42-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 'src/s_com.c')
-rw-r--r--src/s_com.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/s_com.c b/src/s_com.c
index 7ed20bc..14dc4ef 100644
--- a/src/s_com.c
+++ b/src/s_com.c
@@ -81,6 +81,8 @@ void s_com_destroy(t_com **com)
{
t_com *ptr;
+ if (*com == NULL)
+ return ;
ptr = *com;
ft_memdel((void*)&ptr->bin);
if (ptr->argv != NULL)