From f6d554874b35bb29ad15cd2e07be4253303564bf Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 23 Apr 2013 16:54:05 +0200 Subject: [PATCH] initialize the vector member array so that 'cleanup' won't delete uninitialized pointers --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.39.2