From 990276516158a00b1f003261a86fdd8d6fe65ae9 Mon Sep 17 00:00:00 2001 From: starnakin Date: Mon, 15 Dec 2025 04:16:24 -0600 Subject: [PATCH] fix: parsing, check right argument --- src/parsing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parsing.c b/src/parsing.c index fd3bd46..6500673 100644 --- a/src/parsing.c +++ b/src/parsing.c @@ -33,7 +33,7 @@ char *parsing(char * const *av, struct param parameters[]) parameter->value = (void*)true; else { - if (av[i] == NULL) + if (av[i + 1] == NULL) { print_err("%s: requirement argument", av[i]); return NULL;