From cc4ede7ead7622c096bc598aad3e10baf93c4350 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 21 Apr 2020 17:26:12 +0200 Subject: Good so far --- src/ft_m_funptr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ft_m_funptr.c') diff --git a/src/ft_m_funptr.c b/src/ft_m_funptr.c index a9e7882..813e5a3 100644 --- a/src/ft_m_funptr.c +++ b/src/ft_m_funptr.c @@ -15,6 +15,7 @@ #include "ft_b_echo.h" #include "ft_b_env.h" #include "ft_d_enum.h" +#include "ft_f_fail.h" #include "ft_m_funptr.h" #include "ft_s_struct.h" @@ -31,6 +32,6 @@ void /* msh->bu_ptr[7] = ft_b_cat; */ if (!(msh->bu_ref = ft_split(FT_BUILTINS, '|'))) { - exit(FT_RET_ALLOC); + ft_fail_alloc(); } } -- cgit v1.2.3