mirror of
https://git.tukaani.org/xz.git
synced 2025-02-17 14:08:12 +00:00
xz: Add a clarifying assertion
Fixes: 5f0c5a04388f8334962c70bc37a8c2ff8f605e0a (cherry picked from commit 1eaad004bf7748976324672db028e34f42802e61)
This commit is contained in:
parent
df3efc058a
commit
77bcf6b76a
@ -256,6 +256,7 @@ filters_memusage_max(uint64_t *filter_memusages,
|
|||||||
uint64_t memusage = UINT64_MAX;
|
uint64_t memusage = UINT64_MAX;
|
||||||
#ifdef MYTHREAD_ENABLED
|
#ifdef MYTHREAD_ENABLED
|
||||||
if (mt != NULL) {
|
if (mt != NULL) {
|
||||||
|
assert(encode);
|
||||||
mt_local.filters = filters[i];
|
mt_local.filters = filters[i];
|
||||||
memusage = lzma_stream_encoder_mt_memusage(&mt_local);
|
memusage = lzma_stream_encoder_mt_memusage(&mt_local);
|
||||||
} else
|
} else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user