summaryrefslogtreecommitdiffstats
path: root/src/minishell.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-21 17:26:12 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-21 17:26:12 +0200
commitcc4ede7ead7622c096bc598aad3e10baf93c4350 (patch)
treeb21c1c5137968306462c67542f7e622c11d2a5a7 /src/minishell.c
parentNo more leaks (diff)
download42-minishell-cc4ede7ead7622c096bc598aad3e10baf93c4350.tar.gz
42-minishell-cc4ede7ead7622c096bc598aad3e10baf93c4350.tar.bz2
42-minishell-cc4ede7ead7622c096bc598aad3e10baf93c4350.tar.xz
42-minishell-cc4ede7ead7622c096bc598aad3e10baf93c4350.tar.zst
42-minishell-cc4ede7ead7622c096bc598aad3e10baf93c4350.zip
Good so far
Diffstat (limited to 'src/minishell.c')
-rw-r--r--src/minishell.c4
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