jcf-write.c (generate_classfile): Scan the source_file for slashes with the right...
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>
Fri, 19 May 2000 00:52:10 +0000 (00:52 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 19 May 2000 00:52:10 +0000 (00:52 +0000)
2000-05-18  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>

* jcf-write.c (generate_classfile): Scan the source_file for
slashes with the right pointer variable.

From-SVN: r34006

gcc/java/ChangeLog
gcc/java/jcf-write.c

index 8a8606793647f2be3db430b718b1237ece14bce3..0fe7ad82bf9ce0e26a70f7a91170c717a48d4081 100644 (file)
@@ -1,3 +1,8 @@
+2000-05-18  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
+
+       * 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  <cagney@b1.cygnus.com>
 
        * lang.c (lang_decode_option): Update -Wunused flags by calling
index 3b93e511c8dc8a75326b3db09623332c35918e4c..ac3b42ee82a6aaf96830d9655fd13ef91cfd1309 100644 (file)
@@ -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 == '\\')