diff options
Diffstat (limited to 'hwpfilter/source/hiodev.cxx')
-rw-r--r-- | hwpfilter/source/hiodev.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hwpfilter/source/hiodev.cxx b/hwpfilter/source/hiodev.cxx index f7cd75ead04a..56d4719e4302 100644 --- a/hwpfilter/source/hiodev.cxx +++ b/hwpfilter/source/hiodev.cxx @@ -134,7 +134,10 @@ bool HStreamIODev::setCompressed(bool flag) { compressed = flag; if (flag) - return nullptr != (_gzfp = gz_open(*_stream)); + { + _gzfp = gz_open(*_stream); + return nullptr != _gzfp; + } else if (_gzfp) { gz_flush(_gzfp, Z_FINISH); |