From aa988e7d6a789a88f74651df4468c9b480489387 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 22 Apr 2020 21:40:32 +0200 Subject: Starting to do redirections --- src/ft_s_lcom.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ft_s_lcom.c') diff --git a/src/ft_s_lcom.c b/src/ft_s_lcom.c index 67ad6a9..7a72378 100644 --- a/src/ft_s_lcom.c +++ b/src/ft_s_lcom.c @@ -13,6 +13,7 @@ #include #include #include +#include "ft_p_lcom.h" #include "ft_s_struct.h" static int8_t @@ -100,8 +101,13 @@ t_lcom if (!(link = (t_lcom*)malloc(sizeof(t_lcom)))) return (NULL); + link->redir = 0; + link->com = NULL; + link->args = NULL; + link->rdrpath = NULL; if (!(words = ft_split(word, ' '))) return (NULL); + /* TODO: redirections here */ if (ft_fill_lcom(words, &link) < 0) { ft_delwords(words); -- cgit v1.2.3