mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 22:22:17 +00:00
initialize the vector member array so that 'cleanup' won't delete uninitialized pointers
This commit is contained in:
parent
3d9a06591a
commit
f6d554874b
1 changed files with 1 additions and 1 deletions
2
parser.c
2
parser.c
|
@ -5114,7 +5114,7 @@ static bool parse_variable(parser_t *parser, ast_block *localblock, bool nofield
|
|||
bool cleanvar = true;
|
||||
bool wasarray = false;
|
||||
|
||||
ast_member *me[3];
|
||||
ast_member *me[3] = { NULL, NULL, NULL };
|
||||
|
||||
if (!localblock && is_static)
|
||||
parseerror(parser, "`static` qualifier is not supported in global scope");
|
||||
|
|
Loading…
Reference in a new issue