This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch] Java: minor patch.
- To: egcs-patches at egcs dot cygnus dot com
- Subject: [Patch] Java: minor patch.
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Wed, 19 Apr 2000 19:38:44 -0700
- Reply-to: apbianco at redhat dot com
I committing this minor patch.
./A
2000-04-19 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (yyerror): `msg' can be null, don't use it in that case.
Index: parse.y
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/parse.y,v
retrieving revision 1.151
diff -u -p -r1.151 parse.y
--- parse.y 2000/04/19 01:53:47 1.151
+++ parse.y 2000/04/20 02:20:37
@@ -2932,7 +2932,7 @@ yyerror (msg)
else
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.line = ctxp->p_line->lineno;