* data/yacc.c (yyparse): Undo previous patch. Instead,

set yylsp[0] and yyvsp[0] only if the initial action
sets yylloc and yylval, respectively.
This commit is contained in:
Paul Eggert
2005-07-09 08:26:29 +00:00
parent 34160ec4ec
commit 407d4a75bb
2 changed files with 13 additions and 5 deletions

View File

@@ -1,5 +1,9 @@
2005-07-09 Paul Eggert <eggert@cs.ucla.edu>
* data/yacc.c (yyparse): Undo previous patch. Instead,
set yylsp[0] and yyvsp[0] only if the initial action
sets yylloc and yylval, respectively.
* data/yacc.c (yyparse): In the initial action, set
yylsp[0] and yyvsp[0] rather than yylloc and yylval.
This avoids the use of undefined variables if the initial