From 3e314470738018cbc74e39c1ba08007e94e78d56 Mon Sep 17 00:00:00 2001 From: Sergio Date: Fri, 13 Feb 2026 16:42:50 +0100 Subject: [PATCH] fix: fixed crash on non-existent variables index was being moved to -1 if token was only the variable, this probably works too for variables without value --- src/parser/parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser/parser.c b/src/parser/parser.c index 3615519..be52e1b 100644 --- a/src/parser/parser.c +++ b/src/parser/parser.c @@ -6,7 +6,7 @@ /* By: sede-san exit = true, malloc_error()); - *i += ft_strlen(variable_value) - 1; + *i += ft_strlen(variable_value); free(*argument); *argument = expanded; }