From: Wolfgang Bumiller Date: Thu, 20 Dec 2012 14:01:19 +0000 (+0100) Subject: ast_return needs the correct context... X-Git-Tag: 0.1.9~14 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d76e6b103d8502191679a94f1b1b0de646e81d0d;p=xonotic%2Fgmqcc.git ast_return needs the correct context... --- diff --git a/parser.c b/parser.c index 6f2ddd8..8d8e5a4 100644 --- a/parser.c +++ b/parser.c @@ -2156,7 +2156,7 @@ static bool parse_return(parser_t *parser, ast_block *block, ast_expression **ou parseerror(parser, "return with invalid expression"); } - ret = ast_return_new(exp->expression.node.context, exp); + ret = ast_return_new(ctx, exp); if (!ret) { ast_delete(exp); return false;