From: Paul Eggert Date: Thu, 14 Jul 2005 05:08:03 +0000 (+0000) Subject: * data/glr.c (yyuserAction): Fix uninitialized variable that caused X-Git-Tag: BISON-2_1~93 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/d741bd1bfd186e7ce7f74377a01f5eeb206324e0?ds=sidebyside * data/glr.c (yyuserAction): Fix uninitialized variable that caused a valgrind failure. Problem reported by twlevo@xs4all.nl. --- diff --git a/ChangeLog b/ChangeLog index caf5df7d..d894b454 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-07-13 Paul Hilfinger + + * data/glr.c (yyuserAction): Fix uninitialized variable that caused + a valgrind failure. Problem reported by twlevo@xs4all.nl. + 2005-07-13 Paul Eggert * PACKAGING: New file, suggested by Bruno Haible and taken from diff --git a/data/glr.c b/data/glr.c index d332c866..0f38c2d6 100644 --- a/data/glr.c +++ b/data/glr.c @@ -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