mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-12-18 00:11:06 +00:00
fix a goto to a wrong error-cleanup part
This commit is contained in:
parent
c7ca5683b9
commit
150c6e21e7
1 changed files with 2 additions and 2 deletions
4
parser.c
4
parser.c
|
@ -4059,13 +4059,13 @@ static bool parse_function_body(parser_t *parser, ast_value *var)
|
|||
if (!parser_create_array_setter_proto(parser, varargs, name)) {
|
||||
ast_delete(varargs);
|
||||
ast_block_delete(block);
|
||||
goto enderr;
|
||||
goto enderrfn;
|
||||
}
|
||||
snprintf(name, sizeof(name), "%s##va##GET", var->name);
|
||||
if (!parser_create_array_getter_proto(parser, varargs, varargs->expression.next, name)) {
|
||||
ast_delete(varargs);
|
||||
ast_block_delete(block);
|
||||
goto enderr;
|
||||
goto enderrfn;
|
||||
}
|
||||
func->varargs = varargs;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue