From fc7d81fe31be496c5624e11e9b94664b97b53b27 Mon Sep 17 00:00:00 2001 From: Adam Joly Date: Tue, 13 Aug 2024 19:02:50 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=94=A8=E3=80=8D=20fix:=20fixed?= =?UTF-8?q?=20when=20space=20after=20pipe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/parsing/check_error/check_pipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parsing/check_error/check_pipe.c b/src/parsing/check_error/check_pipe.c index 93c65a3..6c318db 100644 --- a/src/parsing/check_error/check_pipe.c +++ b/src/parsing/check_error/check_pipe.c @@ -6,7 +6,7 @@ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/06/30 12:52:22 by adjoly #+# #+# */ -/* Updated: 2024/08/04 13:45:18 by adjoly ### ########.fr */ +/* Updated: 2024/08/13 19:02:15 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ @@ -40,7 +40,7 @@ bool check_pipe(char *readline) tmp++; while (*tmp && ft_isspace(*tmp)) tmp++; - if ((!tmp && !*tmp) || *tmp == '|') + if (!tmp || !*tmp || *tmp == '|') return (send_error_parsing("No command after pipe")); } tmp++;