diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-05-11 15:52:11 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-05-11 15:52:11 +0200 |
commit | 4cdd3e31e7181a10e83e993f92e8d6606e978a2d (patch) | |
tree | 2ea42522239dcbb210941635ccc1a23e788e6244 /src/ft_s_lpipes.c | |
parent | UFS reinstall, will finish pipes later (diff) | |
download | 42-minishell-4cdd3e31e7181a10e83e993f92e8d6606e978a2d.tar.gz 42-minishell-4cdd3e31e7181a10e83e993f92e8d6606e978a2d.tar.bz2 42-minishell-4cdd3e31e7181a10e83e993f92e8d6606e978a2d.tar.xz 42-minishell-4cdd3e31e7181a10e83e993f92e8d6606e978a2d.tar.zst 42-minishell-4cdd3e31e7181a10e83e993f92e8d6606e978a2d.zip |
New files
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); } |