From c19bd35afdb45e49cebdfd96e7adb1e6fe477f0c Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 30 Jul 2020 20:30:58 +0200 Subject: Double exit no more --- src/e_externs_pipes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/e_externs_pipes.c') diff --git a/src/e_externs_pipes.c b/src/e_externs_pipes.c index c8f8404..a5ee696 100644 --- a/src/e_externs_pipes.c +++ b/src/e_externs_pipes.c @@ -122,7 +122,7 @@ void rptr = ptr; pipes = e_get_pipes_count(head); if (!(fullpath = (char **)malloc((pipes + 2) * sizeof(char *)))) - fail_alloc(msh); + f_fail_alloc(msh); fullpath[pipes + 1] = NULL; i = 0; while (rptr != NULL) @@ -130,7 +130,7 @@ void if (ft_ischarset("/.", rptr->one->com[0])) { if (!(fullpath[i] = ft_strdup(rptr->one->com))) - fail_alloc(msh); + f_fail_alloc(msh); } else if ((envpath = get_env_path(msh)) != NULL) { -- cgit v1.2.3