fix(parser): typo

This commit is contained in:
matteo 2026-01-31 13:26:02 +01:00
parent 132f4f3a53
commit 567bd44fce

View file

@ -194,10 +194,10 @@ struct ast *parse_funcdec(struct lexer_context *ctx)
value = parse_shell_command(ctx);
if (value == NULL)
{
free(name);
free(func_name);
return NULL;
}
return ast_create_function(name, value);
return ast_create_function(func_name, value);
}
struct ast *parse_for(struct lexer_context *ctx)