summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-05-12 04:17:09 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-05-12 04:17:09 +0200
commitf846bc10e7f36e7c6f7c7888544af2a0932a8001 (patch)
tree8c184e0c0743c605ddb4d74bfc3cf4c43fa5af29
parent6e662881a75e7edc212734235565c50415dd1198 (diff)
Fixing gzflush...
-rw-r--r--lib/Handle.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Handle.cc b/lib/Handle.cc
index 124f866..210186d 100644
--- a/lib/Handle.cc
+++ b/lib/Handle.cc
@@ -758,8 +758,8 @@ void Handle::Flush() {
return;
if (z >= 10) {
- } else if (z) {
- gzflush(&z, Z_FULL_FLUSH);
+ } else if (zfile) {
+ gzflush(zile, Z_FULL_FLUSH);
} else {
#ifdef HAVE_FSYNC
fsync(h);