aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/compression.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-03-14 13:13:29 +0100
committerEelco Dolstra <edolstra@gmail.com>2017-03-15 16:49:06 +0100
commit2691498b5c68a9c8908da296bf867bfc7f9a068f (patch)
treefedea1abcc9a6a6bb2d44a0c788fb1fbe168747b /src/libutil/compression.cc
parentfbbc4d8dda4d347351c0667d1d9a571b201256cf (diff)
Fix assertion failure on SIGINT
nix: src/libutil/compression.cc:142: virtual nix::XzSink::~XzSink(): Assertion `finished' failed.
Diffstat (limited to 'src/libutil/compression.cc')
-rw-r--r--src/libutil/compression.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libutil/compression.cc b/src/libutil/compression.cc
index 723b072af..8cb1dde66 100644
--- a/src/libutil/compression.cc
+++ b/src/libutil/compression.cc
@@ -146,7 +146,6 @@ struct XzSink : CompressionSink
~XzSink()
{
- assert(finished);
lzma_end(&strm);
}
@@ -217,7 +216,6 @@ struct BzipSink : CompressionSink
~BzipSink()
{
- assert(finished);
BZ2_bzCompressEnd(&strm);
}