From abde607f1211d482f02d6cf11532c9cd2174ea24 Mon Sep 17 00:00:00 2001 From: y-syo Date: Sun, 21 Jul 2024 18:05:43 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=97=91=EF=B8=8F=E3=80=8D=20clean?= =?UTF-8?q?:=20cleaned=20project.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/exec/exec_split_cmd.c | 5 +++-- src/parsing/tokenizer/__to_redir.c | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/exec/exec_split_cmd.c b/src/exec/exec_split_cmd.c index 96b5545..8ecadf1 100644 --- a/src/exec/exec_split_cmd.c +++ b/src/exec/exec_split_cmd.c @@ -6,7 +6,7 @@ /* By: mmoussou cmd) { - ft_free("a", &(cmd->argv)); + if (cmd->argv) + ft_free("a", &(cmd->argv)); get_exit_code(0); return (0); } diff --git a/src/parsing/tokenizer/__to_redir.c b/src/parsing/tokenizer/__to_redir.c index 542a0bc..f6a8b16 100644 --- a/src/parsing/tokenizer/__to_redir.c +++ b/src/parsing/tokenizer/__to_redir.c @@ -6,7 +6,7 @@ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/05/25 15:06:15 by adjoly #+# #+# */ -/* Updated: 2024/07/21 17:51:56 by adjoly ### ########.fr */ +/* Updated: 2024/07/21 18:01:37 by mmoussou ### ########.fr */ /* */ /* ************************************************************************** */ @@ -27,7 +27,6 @@ char *__redir_filename_cpy(char *redir_s) tmp = ft_calloc(__get_len_arg(redir_s) + 1, sizeof(char)); len = __cpy_arg(tmp, redir_s); - printf("%zu\n", len); i = 0; j = 0; filename = ft_calloc(len + 1, sizeof(char));