aboutsummaryrefslogtreecommitdiff
path: root/contrib/byacc/test/btyacc/rename_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/byacc/test/btyacc/rename_debug.c')
-rw-r--r--contrib/byacc/test/btyacc/rename_debug.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/byacc/test/btyacc/rename_debug.c b/contrib/byacc/test/btyacc/rename_debug.c
index ce7cb3d9613c..5681f91930fd 100644
--- a/contrib/byacc/test/btyacc/rename_debug.c
+++ b/contrib/byacc/test/btyacc/rename_debug.c
@@ -386,6 +386,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;