Skip to content

Commit

Permalink
Merge pull request #29 from ellert/uninitialized
Browse files Browse the repository at this point in the history
Fix for a "Conditional jump or move depends on uninitialised value(s)" problem detected by valgrind
  • Loading branch information
tmaklin authored Feb 3, 2025
2 parents 6c426ef + 445daab commit 362ef39
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/zstd_stream_wrapper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ class zstd_stream_wrapper : public stream_wrapper {
this->cctx = ZSTD_createCCtx();
if (this->cctx == NULL) throw zstdException("ZSTD_createCCtx() failed!");
this->ret = ZSTD_CCtx_setParameter(cctx, ZSTD_c_compressionLevel, level);
if (ZSTD_isError(this->ret)) throw zstdException(this->ret);
}
if (ZSTD_isError(this->ret)) throw zstdException(this->ret);

}

~zstd_stream_wrapper() {
Expand Down

0 comments on commit 362ef39

Please sign in to comment.