File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -347,8 +347,7 @@ class BZip2Decoder : public Decoder<bz_stream, char> {
347347 stream_.avail_in = 0;
348348 stream_.next_in = nullptr;
349349 if (BZ2_bzDecompressInit(&stream_, 0, 0) != BZ_OK)
350- log_fatal("Error initializing bzip2 decoder: %s",
351- BZ2_bzerror(&stream_, &err));
350+ log_fatal("Error initializing bzip2 decoder");
352351 }
353352
354353 ~BZip2Decoder() {
@@ -665,13 +664,11 @@ class BZip2Encoder : public Encoder<bz_stream, char> {
665664public:
666665 BZip2Encoder(std::ostream &file, size_t size) : Encoder(file, size)
667666 {
668- int err = 0;
669667 stream_.bzalloc = nullptr;
670668 stream_.bzfree = nullptr;
671669 stream_.opaque = nullptr;
672670 if (BZ2_bzCompressInit(&stream_, 9, 0, 0) != BZ_OK)
673- log_fatal("Error initializing bzip2 encoder: %s",
674- BZ2_bzerror(&stream_, &err));
671+ log_fatal("Error initializing bzip2 encoder");
675672 }
676673
677674 ~BZip2Encoder() {
You can’t perform that action at this time.
0 commit comments