From 2b66ce5bc39f81d705eac959c658ac92ef6c3667 Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Tue, 21 Feb 2023 23:55:32 +0100 Subject: [PATCH] fix: "'''" --- main.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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) {