Skip to content
Permalink
Browse files
Fix ZstdDecompressor error check
  • Loading branch information
sfan5 committed Sep 2, 2021
1 parent b0ca3d7 commit f471554294c8b934b84359d96aa9719be7ed4132
Showing with 2 additions and 2 deletions.
  1. +2 −2 ZstdDecompressor.cpp
@@ -47,9 +47,9 @@ ustring ZstdDecompressor::decompress()
buffer.resize(outbuf.size);
outbuf.dst = &buffer[0];
}
if (ret && ZSTD_isError(ret))
throw DecompressError();
} while (ret != 0);
if (ZSTD_isError(ret))
throw DecompressError();

m_seekPos = inbuf.pos;
buffer.resize(outbuf.pos);

0 comments on commit f471554

Please sign in to comment.