diff options
Diffstat (limited to 'libjava/java')
-rw-r--r-- | libjava/java/util/zip/InflaterInputStream.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libjava/java/util/zip/InflaterInputStream.java b/libjava/java/util/zip/InflaterInputStream.java index 5aac73d..b045349 100644 --- a/libjava/java/util/zip/InflaterInputStream.java +++ b/libjava/java/util/zip/InflaterInputStream.java @@ -1,5 +1,5 @@ /* InflaterInputStream.java - Input stream filter for decompressing - Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -90,6 +90,8 @@ public class InflaterInputStream extends FilterInputStream { if (inf == null) throw new IOException ("stream closed"); + if (len == 0) + return 0; if (inf.finished()) return -1; |