summaryrefslogtreecommitdiffstats
path: root/src/ft_s_lcom.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-05-07 13:49:10 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-05-07 13:49:10 +0200
commit9666a0a0ef6f5a4fb30bac93797d0f029ad8294a (patch)
treea09f917723ae3a0dfeaef025b5e9a76e2c8602f2 /src/ft_s_lcom.c
parentPreparing the structs (diff)
download42-minishell-9666a0a0ef6f5a4fb30bac93797d0f029ad8294a.tar.gz
42-minishell-9666a0a0ef6f5a4fb30bac93797d0f029ad8294a.tar.bz2
42-minishell-9666a0a0ef6f5a4fb30bac93797d0f029ad8294a.tar.xz
42-minishell-9666a0a0ef6f5a4fb30bac93797d0f029ad8294a.tar.zst
42-minishell-9666a0a0ef6f5a4fb30bac93797d0f029ad8294a.zip
Still pipin'
Diffstat (limited to '')
-rw-r--r--src/ft_s_lcom.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ft_s_lcom.c b/src/ft_s_lcom.c
index 524eb32..d56ba7f 100644
--- a/src/ft_s_lcom.c
+++ b/src/ft_s_lcom.c
@@ -110,6 +110,7 @@ t_lcom
*ft_lcom_new(const char word[],
t_msh *msh)
{
+ /* TODO: norme */
t_lcom *link;
char **words;
@@ -120,6 +121,13 @@ t_lcom
link->argv = NULL;
link->rdrfd = 0;
link->rdrpath = NULL;
+ link->pipes = NULL;
+ if (!word)
+ {
+ link->next = NULL;
+ return (link);
+ }
+ link->pipes = NULL;
if (ft_get_redir(word, &link) != 0)
return (NULL);
if (!(words = ft_subst_args(word, link->redir)))