From: Wolfgang (Blub) Bumiller Date: Sun, 25 Nov 2012 19:48:06 +0000 (+0100) Subject: Set the output to NULL always before parsing stuff X-Git-Tag: 0.1.9~240 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3424b7227b61ea7aef13a4ff03ff68200d62b5ad;p=xonotic%2Fgmqcc.git Set the output to NULL always before parsing stuff --- diff --git a/parser.c b/parser.c index 8be7e30..752d62a 100644 --- a/parser.c +++ b/parser.c @@ -2230,6 +2230,8 @@ static bool parse_switch(parser_t *parser, ast_block *block, ast_expression **ou static bool parse_statement(parser_t *parser, ast_block *block, ast_expression **out, bool allow_cases) { ast_value *typevar = NULL; + *out = NULL; + if (parser->tok == TOKEN_IDENT) typevar = parser_find_typedef(parser, parser_tokval(parser), 0);