* data/glr.c (yyuserAction): Fix uninitialized variable that caused

a valgrind failure.  Problem reported by twlevo@xs4all.nl.
This commit is contained in:
Paul Eggert
2005-07-14 05:08:03 +00:00
parent 0410a6e0cc
commit d741bd1bfd
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2005-07-13 Paul Hilfinger <hilfingr@CS.Berkeley.EDU>
* data/glr.c (yyuserAction): Fix uninitialized variable that caused
a valgrind failure. Problem reported by twlevo@xs4all.nl.
2005-07-13 Paul Eggert <eggert@cs.ucla.edu>
* PACKAGING: New file, suggested by Bruno Haible and taken from

View File

@@ -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