]> git.saurik.com Git - bison.git/commitdiff
* data/glr.c (yyuserAction): Fix uninitialized variable that caused
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 14 Jul 2005 05:08:03 +0000 (05:08 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 14 Jul 2005 05:08:03 +0000 (05:08 +0000)
a valgrind failure.  Problem reported by twlevo@xs4all.nl.

ChangeLog
data/glr.c

index caf5df7d9f249c4342afdd6e923663bb7f7bb654..d894b4549ad8d4709e4475b7b4d6af9fdb9388d8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
 2005-07-13  Paul Eggert  <eggert@cs.ucla.edu>
 
        * PACKAGING: New file, suggested by Bruno Haible and taken from
index d332c866cb1f0c0445db09ac81ac50e76ecf4415..0f38c2d6ff15e6d031f84a9b524e0b6c06e5fca4 100644 (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);
   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
   switch (yyn)
     {
       b4_actions