summaryrefslogtreecommitdiffstats
path: root/src/s_init.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-16 21:09:14 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-16 21:09:14 +0200
commitc8ba75c31c949d3b5e5ba44e389550ea10096c5d (patch)
tree3fd61cd13f2ba9452c49cc9b48449c2458580454 /src/s_init.c
parentTodo update (diff)
download42-minishell-c8ba75c31c949d3b5e5ba44e389550ea10096c5d.tar.gz
42-minishell-c8ba75c31c949d3b5e5ba44e389550ea10096c5d.tar.bz2
42-minishell-c8ba75c31c949d3b5e5ba44e389550ea10096c5d.tar.xz
42-minishell-c8ba75c31c949d3b5e5ba44e389550ea10096c5d.tar.zst
42-minishell-c8ba75c31c949d3b5e5ba44e389550ea10096c5d.zip
Leak fix
Diffstat (limited to '')
-rw-r--r--src/s_init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/s_init.c b/src/s_init.c
index 58f0cca..f8037b9 100644
--- a/src/s_init.c
+++ b/src/s_init.c
@@ -171,6 +171,7 @@ t_msh
return (NULL);
msh->ret = 0;
init_buptr(msh);
+ msh->fd = 0;
msh->curr = NULL;
msh->com = NULL;
msh->pipes = NULL;