summaryrefslogtreecommitdiffstats
path: root/src/ft_p_line.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/ft_p_line.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/ft_p_line.c')
-rw-r--r--src/ft_p_line.c3
1 files changed, 2 insertions, 1 deletions
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 <libft.h>
#include <stdlib.h>
#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();
}
}