From: Bryce McKinlay Date: Wed, 29 Nov 2000 10:37:40 +0000 (+0000) Subject: Check this.len, not len, when determining if there is no more input data. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db45aaa6918235ba9f7ad694a0dbbcde4c303d4b;p=gcc.git Check this.len, not len, when determining if there is no more input data. From-SVN: r37847 --- diff --git a/libjava/java/util/zip/InflaterInputStream.java b/libjava/java/util/zip/InflaterInputStream.java index d7459eb100d..e712d19aa85 100644 --- a/libjava/java/util/zip/InflaterInputStream.java +++ b/libjava/java/util/zip/InflaterInputStream.java @@ -89,7 +89,7 @@ public class InflaterInputStream extends FilterInputStream count = inf.inflate(buf, off, len); if (count == 0) { - if (len == -1) + if (this.len == -1) return -1; // Couldn't get any more data to feed to the Inflater if (inf.needsDictionary()) throw new ZipException ("Inflater needs Dictionary");