diff --git a/outfile.c b/outfile.c index 35938e8..5bf8c83 100644 --- a/outfile.c +++ b/outfile.c @@ -69,7 +69,7 @@ static int ft_get_outfile(t_data *data, const char *line) ft_eprintf("minishell: malloc failed\n"); return (-2); } - fd = 0; + fd = 1; i = 0; while (tab[i + 1] != NULL) {