diff options
Diffstat (limited to 'test/btyacc/code_error.code.c')
-rw-r--r-- | test/btyacc/code_error.code.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/btyacc/code_error.code.c b/test/btyacc/code_error.code.c index f1cd1c69109d1..6169071c835de 100644 --- a/test/btyacc/code_error.code.c +++ b/test/btyacc/code_error.code.c @@ -500,6 +500,9 @@ YYPARSE_DECL() if (yydebug) fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX); #endif +#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED) + memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range)); +#endif #if YYBTYACC yyps = yyNewState(0); if (yyps == 0) goto yyenomem; |