fix: parsing, check right argument

This commit is contained in:
2025-12-15 04:16:24 -06:00
parent c6289081e7
commit 9902765161

View File

@@ -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;