summaryrefslogtreecommitdiffstats
path: root/src/s_lredir.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-22 16:54:32 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-22 16:54:32 +0200
commit7d373f7cebe2c241ee9a5a946618c0ce3d902907 (patch)
treed555c783b5c485194f4b314ea6d00494c5d04b82 /src/s_lredir.c
parentTODO update (diff)
download42-minishell-7d373f7cebe2c241ee9a5a946618c0ce3d902907.tar.gz
42-minishell-7d373f7cebe2c241ee9a5a946618c0ce3d902907.tar.bz2
42-minishell-7d373f7cebe2c241ee9a5a946618c0ce3d902907.tar.xz
42-minishell-7d373f7cebe2c241ee9a5a946618c0ce3d902907.tar.zst
42-minishell-7d373f7cebe2c241ee9a5a946618c0ce3d902907.zip
In progress + norme
Diffstat (limited to '')
-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);