From 5c9be2d56bfe28632eb96d3b95e676282928aab6 Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Wed, 8 Mar 2023 18:18:47 +0100 Subject: [PATCH] fix: change default output from 0 to 1 --- outfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {