aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/common/stream_decoder_mt.c
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2022-08-17 17:59:51 +0800
committerLasse Collin <lasse.collin@tukaani.org>2023-01-09 16:34:32 +0200
commitdb714d30e0c74d1dd4af1a23ed62b44e0e8e4efc (patch)
treeb6e4494df4142f88e4f4fd74a42d1fada429aa53 /src/liblzma/common/stream_decoder_mt.c
parentStyle: Change #if !defined() to #ifndef in mythread.h. (diff)
downloadxz-db714d30e0c74d1dd4af1a23ed62b44e0e8e4efc.tar.xz
liblzma: Replaced hardcoded 0x0 index indicator byte with macro
Diffstat (limited to '')
-rw-r--r--src/liblzma/common/stream_decoder_mt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblzma/common/stream_decoder_mt.c b/src/liblzma/common/stream_decoder_mt.c
index 5733c764..fd5cd7fd 100644
--- a/src/liblzma/common/stream_decoder_mt.c
+++ b/src/liblzma/common/stream_decoder_mt.c
@@ -887,7 +887,7 @@ decode_block_header(struct lzma_stream_coder *coder,
if (coder->pos == 0) {
// Detect if it's Index.
- if (in[*in_pos] == 0x00)
+ if (in[*in_pos] == INDEX_INDICATOR)
return LZMA_INDEX_DETECTED;
// Calculate the size of the Block Header. Note that