From: Wolfgang (Blub) Bumiller Date: Mon, 20 Aug 2012 16:10:06 +0000 (+0200) Subject: Fix correction of parsiong of multiple variables: parse past the comma X-Git-Tag: 0.1-rc1~133 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=198e35a823325bb2396e0ad9d69dacc0f2298f71;p=xonotic%2Fgmqcc.git Fix correction of parsiong of multiple variables: parse past the comma --- diff --git a/parser.c b/parser.c index c768555..4f5b7be 100644 --- a/parser.c +++ b/parser.c @@ -2108,6 +2108,10 @@ nextvar: if (parser->tok == ',') { /* another var */ + if (!parser_next(parser)) { + ast_delete(typevar); + return false; + } continue; }