diff options
Diffstat (limited to '')
-rw-r--r-- | src/minishell.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/minishell.c b/src/minishell.c index 4b8e763..fc4c4be 100644 --- a/src/minishell.c +++ b/src/minishell.c @@ -14,6 +14,7 @@ #include <stdint.h> #include "minishell.h" #include "ft_d_enum.h" +#include "ft_f_fail.h" #include "ft_m_loop.h" #include "ft_s_struct.h" #include "ft_s_init.h" @@ -31,7 +32,7 @@ int (void)argv; if (!(msh = ft_init_msh(envp))) { - return (FT_RET_ALLOC); + ft_fail_alloc(); } msh->ret = ft_m_loop(msh); ret = msh->ret; @@ -47,6 +48,7 @@ int ** b_ -> builtins related ** d_ -> defines related ** e_ -> exec related +** f_ -> failure related ** m_ -> core minishell related ** p_ -> parse related ** s_ -> structs related |