2004-04-21 Michael Koch <konqueror@gmx.de>
authorMichael Koch <konqueror@gmx.de>
Wed, 21 Apr 2004 07:25:14 +0000 (07:25 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Wed, 21 Apr 2004 07:25:14 +0000 (07:25 +0000)
* java/util/Properties.java
(load): Fix wrongly merged fix.

From-SVN: r80949

libjava/ChangeLog
libjava/java/util/Properties.java

index 4b23a1fba8b1dbfa000daa11ef24cda8a86c5906..c426ddb2755c55a94534849862514a10dcaaddb3 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-21  Michael Koch  <konqueror@gmx.de>
+
+       * java/util/Properties.java
+       (load): Fix wrongly merged fix.
+
 2004-04-21  Mark Wielaard  <mark@klomp.org>
 
        * native/jni/gtk-peer/gthread-jni.c (maybe_rethrow): Explicitly
index 8f0cbab385d221b0d1e1998ddfb745b70e9fe141..921d55c215077d012d4183bc2ef74934c944aca5 100644 (file)
@@ -194,8 +194,8 @@ label   = Name:\\u0020</pre>
           pos++;
 
         // If empty line or begins with a comment character, skip this line.
-        if (line.length() == 0
-           || line.charAt(0) == '#' || line.charAt(0) == '!')
+        if ((line.length() - pos) == 0
+           || line.charAt(pos) == '#' || line.charAt(pos) == '!')
           continue;
 
         // The characters up to the next Whitespace, ':', or '='