From ca14098a63a7e660cde898f3c5850f7b1d39f6f5 Mon Sep 17 00:00:00 2001 From: Dima Dem <50800563+dimadem@users.noreply.github.com> Date: Wed, 6 Nov 2024 17:49:17 +0000 Subject: [PATCH] fix: delete minishell:success (#37) Co-authored-by: Dmitry Demirkylych --- src/execute/execute_child.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/execute/execute_child.c b/src/execute/execute_child.c index 40943b64..d67a41cc 100644 --- a/src/execute/execute_child.c +++ b/src/execute/execute_child.c @@ -57,8 +57,6 @@ int execute(t_ms_data *data) builtin_functions[4] = &builtin_export; builtin_functions[5] = &builtin_pwd; builtin_functions[6] = &builtin_unset; - if (data->args[0] == NULL) - ft_perror("minishel"); i = -1; while (++i < sizeof(builtin_commands) / sizeof(char *)) if (ft_strcmp(data->args[0], builtin_commands[i]) == 0)