aboutsummaryrefslogtreecommitdiff
path: root/src/lexer
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-06 17:07:46 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-06 17:07:46 +0200
commitfc862343cc5d0c305811fe23311084ae3702ed42 (patch)
tree6417bd07fd58dab95eea3193acfd5230f0ff57f1 /src/lexer
parent54394620893f7245c7697a57d724d430d06b57d1 (diff)
downloadminishell-fc862343cc5d0c305811fe23311084ae3702ed42.tar.gz
minishell-fc862343cc5d0c305811fe23311084ae3702ed42.tar.bz2
minishell-fc862343cc5d0c305811fe23311084ae3702ed42.zip
Fixing error status on mac, Fixing parser pipeline segfault, Fixing pipeline not closing read-end
Diffstat (limited to 'src/lexer')
-rw-r--r--src/lexer/trim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lexer/trim.c b/src/lexer/trim.c
index 652a78b..c8ed49e 100644
--- a/src/lexer/trim.c
+++ b/src/lexer/trim.c
@@ -6,7 +6,7 @@
/* By: nahaddac <nahaddac@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/07/16 08:18:36 by nahaddac #+# #+# */
-/* Updated: 2020/09/16 20:09:42 by charles ### ########.fr */
+/* Updated: 2020/10/06 16:14:54 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -66,7 +66,7 @@ int del_quote(char *str)
if (quote_counter % 2 == 1)
{
errorf("unexpected EOF while looking for matching `%c'\n", str[0]);
- return (1);
+ return (2);
}
str[i] = '\0';
ft_memmove(str, str + 1, ft_strlen(str + 1) + 1);