From a92730d3e09a7ca6ed43a045e7f81f506295e799 Mon Sep 17 00:00:00 2001 From: yosyo Date: Mon, 12 Aug 2024 16:26:25 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=94=A8=E3=80=8D=20fix:=20fixed?= =?UTF-8?q?=20some=20things.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/exec/exec_split_cmd.c | 2 +- src/exec/utils_exec_2.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/exec/exec_split_cmd.c b/src/exec/exec_split_cmd.c index c8348f7..46c2ae8 100644 --- a/src/exec/exec_split_cmd.c +++ b/src/exec/exec_split_cmd.c @@ -6,7 +6,7 @@ /* By: mmoussou outfile); if (((t_cmd *)(content))->infile != STDIN_FILENO) close(((t_cmd *)(content))->infile); - if (fd1) + if (fd1 != -1) close(fd1); - if (fd2) + if (fd2 != -1) close(fd2); }