aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/lzma/lzma2_decoder.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/liblzma/lzma/lzma2_decoder.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/liblzma/lzma/lzma2_decoder.c b/src/liblzma/lzma/lzma2_decoder.c
index 7f1f45f4..4470b4b1 100644
--- a/src/liblzma/lzma/lzma2_decoder.c
+++ b/src/liblzma/lzma/lzma2_decoder.c
@@ -261,11 +261,8 @@ lzma_lzma2_decoder_init(lzma_next_coder *next, lzma_allocator *allocator,
extern uint64_t
lzma_lzma2_decoder_memusage(const void *options)
{
- const uint64_t lzma_memusage = lzma_lzma_decoder_memusage(options);
- if (lzma_memusage == UINT64_MAX)
- return UINT64_MAX;
-
- return sizeof(lzma_coder) + lzma_memusage;
+ return sizeof(lzma_coder)
+ + lzma_lzma_decoder_memusage_nocheck(options);
}