From 7d373f7cebe2c241ee9a5a946618c0ce3d902907 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 22 Oct 2020 16:54:32 +0200 Subject: In progress + norme --- src/s_lredir.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/s_lredir.c') diff --git a/src/s_lredir.c b/src/s_lredir.c index 14ca0ae..0457434 100644 --- a/src/s_lredir.c +++ b/src/s_lredir.c @@ -71,6 +71,7 @@ struct s_lredir *s_lredir_new(const char path[], int32_t fd, int8_t redir) if ((rdr = (struct s_lredir*)malloc(sizeof(struct s_lredir))) == NULL) return (NULL); rdr->fd = fd; + rdr->right_fd = -1; rdr->redir = redir; rdr->next = NULL; ft_strlcpy(rdr->path, path, PATH_MAX); -- cgit v1.2.3