Skip to content

Commit

Permalink
Fix ZstdDecompressor error check
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Sep 2, 2021
1 parent b0ca3d7 commit f471554
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ZstdDecompressor.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit f471554

Please sign in to comment.