summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/p_lblock.c2
-rw-r--r--src/s_lredir.c1
-rw-r--r--src/s_struct.h1
3 files changed, 3 insertions, 1 deletions
diff --git a/src/p_lblock.c b/src/p_lblock.c
index 82d1b44..e147a9f 100644
--- a/src/p_lblock.c
+++ b/src/p_lblock.c
@@ -42,7 +42,7 @@ static uint8_t p_get_nextif(char *words[], size_t i)
return (nextif);
}
-t_bool p_find_good_pipe(const char word[])
+t_bool p_find_good_pipe(const char word[])
{
char *ptr;
t_quote_mode mode;
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);
diff --git a/src/s_struct.h b/src/s_struct.h
index e6e266a..03efbda 100644
--- a/src/s_struct.h
+++ b/src/s_struct.h
@@ -53,6 +53,7 @@ typedef struct s_lredir
char path[PATH_MAX];
char *heredoc;
int32_t fd;
+ int32_t right_fd;
int8_t redir;
struct s_lredir *next;
} t_lredir;