diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-05-12 04:17:09 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-05-12 04:17:09 +0200 |
commit | f846bc10e7f36e7c6f7c7888544af2a0932a8001 (patch) | |
tree | 8c184e0c0743c605ddb4d74bfc3cf4c43fa5af29 /lib | |
parent | 6e662881a75e7edc212734235565c50415dd1198 (diff) |
Fixing gzflush...
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Handle.cc | 4 |
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); |