initialize the vector member array so that 'cleanup' won't delete uninitialized pointers
authorWolfgang Bumiller <wry.git@bumiller.com>
Tue, 23 Apr 2013 14:54:05 +0000 (16:54 +0200)
committerWolfgang Bumiller <wry.git@bumiller.com>
Tue, 23 Apr 2013 14:54:05 +0000 (16:54 +0200)
parser.c

index b3e98823604b553363ff9db41caa7151d1551e51..66c372602da732e09d55d30f28362643f1957217 100644 (file)
--- 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");