Skip to content

Commit

Permalink
minor: assert that state is not null
Browse files Browse the repository at this point in the history
replaces #4016
  • Loading branch information
Cyan4973 committed Jan 18, 2025
1 parent 053e4be commit e8de808
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 e8de808

Please sign in to comment.