Commit 807bc1db by Alexandre Petit-Bianco Committed by Alexandre Petit-Bianco

parse.y (yyerror): `msg' can be null, don't use it in that case.

2000-04-19  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (yyerror): `msg' can be null, don't use it in that case.

From-SVN: r33270
parent 5186142b
2000-04-19 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (yyerror): `msg' can be null, don't use it in that case.
2000-04-19 Tom Tromey <tromey@cygnus.com> 2000-04-19 Tom Tromey <tromey@cygnus.com>
* gjavah.c (cxx_keyword_subst): Avoid potential infinite loop. * gjavah.c (cxx_keyword_subst): Avoid potential infinite loop.
......
...@@ -5630,7 +5630,7 @@ yyerror (msg) ...@@ -5630,7 +5630,7 @@ yyerror (msg)
else else
java_error_count++; java_error_count++;
if (elc.col == 0 && msg[1] == ';') if (elc.col == 0 && msg && msg[1] == ';')
{ {
elc.col = ctxp->p_line->char_col-1; elc.col = ctxp->p_line->char_col-1;
elc.line = ctxp->p_line->lineno; elc.line = ctxp->p_line->lineno;
......
...@@ -2932,7 +2932,7 @@ yyerror (msg) ...@@ -2932,7 +2932,7 @@ yyerror (msg)
else else
java_error_count++; java_error_count++;
if (elc.col == 0 && msg[1] == ';') if (elc.col == 0 && msg && msg[1] == ';')
{ {
elc.col = ctxp->p_line->char_col-1; elc.col = ctxp->p_line->char_col-1;
elc.line = ctxp->p_line->lineno; elc.line = ctxp->p_line->lineno;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment