From fd7326254983f0e4ad3ca7792c8a9e2d74f61cd3 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 23 Apr 2020 14:51:38 +0200 Subject: The worst is that it actually works --- src/ft_e_lcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ft_e_lcom.c b/src/ft_e_lcom.c index c499e05..af1b88e 100644 --- a/src/ft_e_lcom.c +++ b/src/ft_e_lcom.c @@ -66,7 +66,7 @@ uint8_t dup2(fd, STDOUT_FILENO); close(fd); } - else if (ptr->redir == 2) + if (ptr->redir == 2) { if ((fd = open(ptr->rdrpath, O_CREAT | O_APPEND | O_WRONLY, 0644))) -- cgit v1.2.3