summaryrefslogtreecommitdiffstats
path: root/libjava/java/util/Properties.java
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-04-21 07:25:14 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-04-21 07:25:14 +0000
commitcfeee5ea6af2ead62188ccfb99fe06c8e7b45721 (patch)
tree2d017898a136ebc3ab9c92efa7fd1e979468026f /libjava/java/util/Properties.java
parent9db82bfe663b34edf555beea1ec078e7076674b9 (diff)
downloadppe42-gcc-cfeee5ea6af2ead62188ccfb99fe06c8e7b45721.tar.gz
ppe42-gcc-cfeee5ea6af2ead62188ccfb99fe06c8e7b45721.zip
2004-04-21 Michael Koch <konqueror@gmx.de>
* java/util/Properties.java (load): Fix wrongly merged fix. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80949 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/util/Properties.java')
-rw-r--r--libjava/java/util/Properties.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/java/util/Properties.java b/libjava/java/util/Properties.java
index 8f0cbab385d..921d55c2150 100644
--- a/libjava/java/util/Properties.java
+++ b/libjava/java/util/Properties.java
@@ -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 '='
OpenPOWER on IntegriCloud