Skip to content

Commit

Permalink
Merge pull request #4249 from facebook/zds_nonnull
Browse files Browse the repository at this point in the history
minor: assert that state is not null
  • Loading branch information
Cyan4973 authored Jan 19, 2025
2 parents 053e4be + e8de808 commit eb2ceb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/decompress/zstd_decompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -2096,6 +2096,7 @@ size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inB
U32 someMoreWork = 1;

DEBUGLOG(5, "ZSTD_decompressStream");
assert(zds != NULL);
RETURN_ERROR_IF(
input->pos > input->size,
srcSize_wrong,
Expand Down

0 comments on commit eb2ceb4

Please sign in to comment.