You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by bo...@apache.org on 2017/04/26 17:48:41 UTC
commons-compress git commit: COMPRESS-388 go back to unsetting
addDummy
Repository: commons-compress
Updated Branches:
refs/heads/master 2871865cc -> 508be17bb
COMPRESS-388 go back to unsetting addDummy
Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/508be17b
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/508be17b
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/508be17b
Branch: refs/heads/master
Commit: 508be17bbc9079769ea99b780db9abcb4655399c
Parents: 2871865
Author: Stefan Bodewig <bo...@apache.org>
Authored: Wed Apr 26 19:48:17 2017 +0200
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Wed Apr 26 19:48:17 2017 +0200
----------------------------------------------------------------------
.../java/org/apache/commons/compress/archivers/zip/ZipFile.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/508be17b/src/main/java/org/apache/commons/compress/archivers/zip/ZipFile.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/compress/archivers/zip/ZipFile.java b/src/main/java/org/apache/commons/compress/archivers/zip/ZipFile.java
index fc7510a..6b2c22a 100644
--- a/src/main/java/org/apache/commons/compress/archivers/zip/ZipFile.java
+++ b/src/main/java/org/apache/commons/compress/archivers/zip/ZipFile.java
@@ -1115,7 +1115,7 @@ public class ZipFile implements Closeable {
public synchronized int read() throws IOException {
if (loc >= end) {
if (loc == end && addDummy) {
- ++loc;
+ addDummy = false;
return 0;
}
return -1;
@@ -1143,7 +1143,7 @@ public class ZipFile implements Closeable {
if (len > end-loc) {
if (loc >= end) {
if (loc == end && addDummy) {
- ++loc;
+ addDummy = false;
b[off] = 0;
return 1;
}