From 4cdd3e31e7181a10e83e993f92e8d6606e978a2d Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 11 May 2020 15:52:11 +0200 Subject: New files --- src/ft_s_lpipes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ft_s_lpipes.c') diff --git a/src/ft_s_lpipes.c b/src/ft_s_lpipes.c index dcdc2ec..8bd34de 100644 --- a/src/ft_s_lpipes.c +++ b/src/ft_s_lpipes.c @@ -82,7 +82,6 @@ struct s_lpipes t_lcom *lcom, t_msh *msh) { - struct s_lpipes *link; struct s_lpipes *lpipes; char **words; size_t i; @@ -91,9 +90,10 @@ struct s_lpipes return (NULL); i = 0; if (!(lpipes = (struct s_lpipes*)malloc(sizeof(struct s_lpipes)))) + return (NULL); while (words[i]) { - if (!(link = ft_lpipes_new(words[i], msh))) + if (!(lpipes = ft_lpipes_new(words[i], msh))) { return (NULL); } -- cgit v1.2.3