summaryrefslogtreecommitdiffstats
path: root/src/ft_s_init.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-23 20:39:56 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-23 20:39:56 +0200
commit15587099afed656c597eddec84e342831c00508f (patch)
treeb1799f588fcd8aff27c0320f3057ebf44da24ea1 /src/ft_s_init.c
parentpwd is bav (diff)
download42-minishell-15587099afed656c597eddec84e342831c00508f.tar.gz
42-minishell-15587099afed656c597eddec84e342831c00508f.tar.bz2
42-minishell-15587099afed656c597eddec84e342831c00508f.tar.xz
42-minishell-15587099afed656c597eddec84e342831c00508f.tar.zst
42-minishell-15587099afed656c597eddec84e342831c00508f.zip
On the way
Diffstat (limited to '')
-rw-r--r--src/ft_s_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_s_init.c b/src/ft_s_init.c
index 6c20c10..fb3ba6a 100644
--- a/src/ft_s_init.c
+++ b/src/ft_s_init.c
@@ -11,6 +11,7 @@
/* ************************************************************************** */
#include <libft.h>
+#include <stdlib.h>
#include <unistd.h>
#include "ft_d_define.h"
@@ -34,6 +35,7 @@ t_msh
ft_strlcpy(msh->ps_one, FT_PS_ONE, ft_strlen(FT_PS_ONE) + 1);
msh->cwd = NULL;
msh->cwd = getcwd(NULL, 0);
+ /* TODO: handle getcwd failed */
msh->envp = envp;
msh->ret = 0;
ft_init_buptr(msh);