From: Wolfgang Bumiller Date: Wed, 16 Jan 2013 08:37:32 +0000 (+0100) Subject: initialize max_param_count to 1 so vararg functions don't try to create an accessor... X-Git-Tag: before-library~247 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0ba8455f6a972499ff71648ac65325be091bab33;p=xonotic%2Fgmqcc.git initialize max_param_count to 1 so vararg functions don't try to create an accessor for an array of 0 elements... --- diff --git a/parser.c b/parser.c index 3bd1073..10ddbdc 100644 --- a/parser.c +++ b/parser.c @@ -5708,6 +5708,8 @@ bool parser_init() if (OPTS_FLAG(UNTYPED_NIL)) util_htset(parser->htglobals, "nil", (void*)parser->nil); + parser->max_param_count = 1; + parser->const_vec[0] = ast_value_new(empty_ctx, "", TYPE_NOEXPR); parser->const_vec[1] = ast_value_new(empty_ctx, "", TYPE_NOEXPR); parser->const_vec[2] = ast_value_new(empty_ctx, "", TYPE_NOEXPR);