Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions contrib/seekable_format/tests/seekable_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ static int seekBuffWithTotal(void* opaque, long long offset, int origin)
break;
default:
assert(0); /* not possible */
return -1; /* keeps newOffset from being read uninitialised when NDEBUG strips the assert */
}
if (newOffset > buff->size) {
return -1;
Expand Down
1 change: 1 addition & 0 deletions contrib/seekable_format/zstdseek_decompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ static int ZSTD_seekable_seek_buff(void* opaque, long long offset, int origin)
break;
default:
assert(0); /* not possible */
return -1; /* keeps newOffset from being read uninitialised when NDEBUG strips the assert */
}
if (newOffset > buff->size) {
return -1;
Expand Down