diff --git a/main.c b/main.c index ad1eef6..0eaf7c9 100644 --- a/main.c +++ b/main.c @@ -6,12 +6,14 @@ /* By: cchauvet static char *ft_get_user_input(t_list **env) { @@ -43,14 +45,11 @@ static int ft_minishell(t_data *data, char *line) int infile; int outfile; + if (ft_syntatic_verif(line)) + return (1); line_clean = ft_normalizer(line); if (line_clean == NULL) return (1); - if (ft_syntatic_verif(line_clean)) - { - free(line_clean); - return (1); - } outfile = ft_outfile(line_clean); if (outfile == -2) {