From d741bd1bfd186e7ce7f74377a01f5eeb206324e0 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 14 Jul 2005 05:08:03 +0000 Subject: [PATCH] * data/glr.c (yyuserAction): Fix uninitialized variable that caused a valgrind failure. Problem reported by twlevo@xs4all.nl. --- ChangeLog | 5 +++++ data/glr.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 2.45.2