From: Wolfgang Bumiller Date: Tue, 23 Apr 2013 14:54:05 +0000 (+0200) Subject: initialize the vector member array so that 'cleanup' won't delete uninitialized pointers X-Git-Tag: before-library~21 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=f6d554874b35bb29ad15cd2e07be4253303564bf initialize the vector member array so that 'cleanup' won't delete uninitialized pointers --- diff --git a/parser.c b/parser.c index b3e9882..66c3726 100644 --- a/parser.c +++ b/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");