From a95e4bcbff1d7572305573697f495b395b7e1970 Mon Sep 17 00:00:00 2001 From: tomoron Date: Fri, 19 Apr 2024 17:59:51 +0200 Subject: [PATCH] gros fix --- srcs/exec_bonus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/srcs/exec_bonus.c b/srcs/exec_bonus.c index d124aef..dda3ad2 100755 --- a/srcs/exec_bonus.c +++ b/srcs/exec_bonus.c @@ -6,7 +6,7 @@ /* By: marde-vr +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/03/28 13:50:14 by tomoron #+# #+# */ -/* Updated: 2024/04/19 17:56:35 by tomoron ### ########.fr */ +/* Updated: 2024/04/19 17:59:31 by tomoron ### ########.fr */ /* */ /* ************************************************************************** */ @@ -49,6 +49,8 @@ void exec_command_bonus(t_msh *msh, char *cmd_str) t_cmd *cmds; t_cmd *tmp; + if(!cmd_str) + return ; cmds = parsing_bonus(cmd_str); //print_parsed_cmd(cmds); // debug tmp = check_cmds_syntax(cmds);