summaryrefslogtreecommitdiff
path: root/test/btyacc/error.tab.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2017-05-31 19:27:37 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2017-05-31 19:27:37 +0000
commit8bb3d1b8fb77d3704e1de225c83b8b66ca673da8 (patch)
tree98b84eab1af57131ce8a431773f562e2374cdf6b /test/btyacc/error.tab.c
parent8992b86776240587bd76f234d50d01bb6e32b9f4 (diff)
Notes
Diffstat (limited to 'test/btyacc/error.tab.c')
-rw-r--r--test/btyacc/error.tab.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/btyacc/error.tab.c b/test/btyacc/error.tab.c
index 26de46d8e63e0..051f78eca0e4c 100644
--- a/test/btyacc/error.tab.c
+++ b/test/btyacc/error.tab.c
@@ -523,6 +523,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;