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_p_line.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ft_p_line.c') diff --git a/src/ft_p_line.c b/src/ft_p_line.c index f299f64..df31973 100644 --- a/src/ft_p_line.c +++ b/src/ft_p_line.c @@ -13,6 +13,7 @@ #include #include #include "ft_d_enum.h" +#include "ft_f_fail.h" #include "ft_p_lcom.h" #include "ft_p_line.h" #include "ft_s_struct.h" @@ -36,6 +37,6 @@ void } if (ft_p_lcom(line, count, msh) < 0) { - exit(FT_RET_ALLOC); + ft_fail_alloc(); } } -- cgit v1.2.3