mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* data/glr.c (yyuserAction): Fix uninitialized variable that caused
a valgrind failure. Problem reported by twlevo@xs4all.nl.
This commit is contained in:
@@ -781,7 +781,8 @@ yyuserAction (yyRuleNum yyn, int yyrhslen, yyGLRStackItem* yyvsp,
|
||||
else
|
||||
*yyvalp = yyvsp[YYFILL (1-yyrhslen)].yystate.yysemantics.yysval;
|
||||
YYLLOC_DEFAULT (*yylocp, yyvsp - yyrhslen, yyrhslen);
|
||||
]
|
||||
]b4_location_if([[ yystack->yyerror_range[1].yystate.yyloc = *yylocp;
|
||||
]])
|
||||
switch (yyn)
|
||||
{
|
||||
b4_actions
|
||||
|
||||
Reference in New Issue
Block a user