fix(parser): typo
This commit is contained in:
parent
132f4f3a53
commit
567bd44fce
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue