diff options
author | Jia Tan <jiat0218@gmail.com> | 2022-08-17 17:59:51 +0800 |
---|---|---|
committer | Jia Tan <jiat0218@gmail.com> | 2023-01-02 22:20:04 +0800 |
commit | 203b008eb220208981902e0db541c02d1c1c9f5e (patch) | |
tree | d64b2557c269175d43a031932ccb2ed068abe25f /src/liblzma/common/stream_decoder.c | |
parent | Tests: test_check: Test corner cases of CLMUL CRC64. (diff) | |
download | xz-203b008eb220208981902e0db541c02d1c1c9f5e.tar.xz |
liblzma: Replaced hardcoded 0x0 index indicator byte with macro
Diffstat (limited to 'src/liblzma/common/stream_decoder.c')
-rw-r--r-- | src/liblzma/common/stream_decoder.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/liblzma/common/stream_decoder.c b/src/liblzma/common/stream_decoder.c index dcf7c149..64283812 100644 --- a/src/liblzma/common/stream_decoder.c +++ b/src/liblzma/common/stream_decoder.c @@ -12,6 +12,7 @@ #include "stream_decoder.h" #include "block_decoder.h" +#include "index.h" typedef struct { @@ -164,7 +165,7 @@ stream_decode(void *coder_ptr, const lzma_allocator *allocator, if (coder->pos == 0) { // Detect if it's Index. - if (in[*in_pos] == 0x00) { + if (in[*in_pos] == INDEX_INDICATOR) { coder->sequence = SEQ_INDEX; break; } |