diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_s_lpipes.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |