diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_s_lcom.c | 8 |
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))) |