diff --git a/bison.simple b/bison.simple index 49c8b857..c0c278a3 100644 --- a/bison.simple +++ b/bison.simple @@ -189,7 +189,7 @@ yyparse() register short *yyssp; register YYSTYPE *yyvsp; int yyerrstatus; /* number of tokens to shift before error messages enabled */ - int yychar1; /* lookahead token as an internal (translated) token number */ + int yychar1 = 0; /* lookahead token as an internal (translated) token number */ short yyssa[YYINITDEPTH]; /* the state stack */ YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */ diff --git a/src/bison.s1 b/src/bison.s1 index 49c8b857..c0c278a3 100644 --- a/src/bison.s1 +++ b/src/bison.s1 @@ -189,7 +189,7 @@ yyparse() register short *yyssp; register YYSTYPE *yyvsp; int yyerrstatus; /* number of tokens to shift before error messages enabled */ - int yychar1; /* lookahead token as an internal (translated) token number */ + int yychar1 = 0; /* lookahead token as an internal (translated) token number */ short yyssa[YYINITDEPTH]; /* the state stack */ YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */ diff --git a/src/bison.simple b/src/bison.simple index 49c8b857..c0c278a3 100644 --- a/src/bison.simple +++ b/src/bison.simple @@ -189,7 +189,7 @@ yyparse() register short *yyssp; register YYSTYPE *yyvsp; int yyerrstatus; /* number of tokens to shift before error messages enabled */ - int yychar1; /* lookahead token as an internal (translated) token number */ + int yychar1 = 0; /* lookahead token as an internal (translated) token number */ short yyssa[YYINITDEPTH]; /* the state stack */ YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */