summaryrefslogtreecommitdiffstats
path: root/src/s_lredir.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/s_lredir.c')
-rw-r--r--src/s_lredir.c1
1 files changed, 1 insertions, 0 deletions
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);