From caa35c6770ea21112ccf38d8637d15f2bc717ea6 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 31 Jul 2020 19:25:39 +0200 Subject: Stuff to fix --- src/s_lcom.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/s_lcom.c') diff --git a/src/s_lcom.c b/src/s_lcom.c index 773814f..088f625 100644 --- a/src/s_lcom.c +++ b/src/s_lcom.c @@ -127,17 +127,18 @@ t_lcom link->pipes = NULL; if (get_redir(word, &link) != 0) return (NULL); - if (!(words = subst_args(word, link->redir))) + if (!(words = p_subst_args(word, link->redir))) return (NULL); - if (!(words = subst_vars(words, msh))) + if (!(words = p_subst_vars(words, msh))) return (NULL); - words = p_check_first_arg_equals(words); + words = p_check_args_equals(words, msh); if (fill_lcom(words, &link) < 0) { ft_delwords(words); return (NULL); } link->next = NULL; - ft_delwords(words); + if (words[0] != NULL) + ft_delwords(words); return (link); } -- cgit v1.2.3