From: Alexandre Oliva Date: Fri, 19 May 2000 00:52:10 +0000 (+0000) Subject: jcf-write.c (generate_classfile): Scan the source_file for slashes with the right... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=062edaed2aba02add8b88f27823ed73a2dd0c2b6;p=gcc.git jcf-write.c (generate_classfile): Scan the source_file for slashes with the right pointer variable. 2000-05-18 Alexandre Oliva * jcf-write.c (generate_classfile): Scan the source_file for slashes with the right pointer variable. From-SVN: r34006 --- diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 8a860679364..0fe7ad82bf9 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2000-05-18 Alexandre Oliva + + * jcf-write.c (generate_classfile): Scan the source_file for + slashes with the right pointer variable. + Wed May 17 17:27:44 2000 Andrew Cagney * lang.c (lang_decode_option): Update -Wunused flags by calling diff --git a/gcc/java/jcf-write.c b/gcc/java/jcf-write.c index 3b93e511c8d..ac3b42ee82a 100644 --- a/gcc/java/jcf-write.c +++ b/gcc/java/jcf-write.c @@ -3066,7 +3066,7 @@ generate_classfile (clas, state) source_file = DECL_SOURCE_FILE (TYPE_NAME (clas)); for (s = source_file; ; s++) { - char ch = *ptr; + char ch = *s; if (ch == '\0') break; if (ch == '/' || ch == '\\')