diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 2000-04-20 02:52:26 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-04-19 19:52:26 -0700 |
commit | 807bc1db3dea6d5c6bfdb228df6c207d65462e9a (patch) | |
tree | 63a788d4906fc2b88cfafa93206632d889754864 /gcc/java/parse.c | |
parent | 5186142b90903fae7415ff7f4fad1f6cd5bd3fa3 (diff) | |
download | gcc-807bc1db3dea6d5c6bfdb228df6c207d65462e9a.zip gcc-807bc1db3dea6d5c6bfdb228df6c207d65462e9a.tar.gz gcc-807bc1db3dea6d5c6bfdb228df6c207d65462e9a.tar.bz2 |
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
Diffstat (limited to 'gcc/java/parse.c')
-rw-r--r-- | gcc/java/parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/parse.c b/gcc/java/parse.c index ef9401b..ac7bdac 100644 --- a/gcc/java/parse.c +++ b/gcc/java/parse.c @@ -5630,7 +5630,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; |