fix: change default output from 0 to 1

This commit is contained in:
Camille Chauvet 2023-03-08 18:18:47 +01:00
parent 15c95b45b1
commit 5c9be2d56b

View File

@ -69,7 +69,7 @@ static int ft_get_outfile(t_data *data, const char *line)
ft_eprintf("minishell: malloc failed\n"); ft_eprintf("minishell: malloc failed\n");
return (-2); return (-2);
} }
fd = 0; fd = 1;
i = 0; i = 0;
while (tab[i + 1] != NULL) while (tab[i + 1] != NULL)
{ {