]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Fix correction of parsiong of multiple variables: parse past the comma
authorWolfgang (Blub) Bumiller <blub@speed.at>
Mon, 20 Aug 2012 16:10:06 +0000 (18:10 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Mon, 20 Aug 2012 16:10:06 +0000 (18:10 +0200)
parser.c

index c76855597a3d7cc7b0e248fe1677655e059a8b17..4f5b7be4e9594c40b07f63d13954caedab82d552 100644 (file)
--- 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;
         }