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/index_hash.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 '')
-rw-r--r-- | src/liblzma/common/index_hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblzma/common/index_hash.c b/src/liblzma/common/index_hash.c index 34df85d7..c3c56674 100644 --- a/src/liblzma/common/index_hash.c +++ b/src/liblzma/common/index_hash.c @@ -190,7 +190,7 @@ lzma_index_hash_decode(lzma_index_hash *index_hash, const uint8_t *in, switch (index_hash->sequence) { case SEQ_BLOCK: // Check the Index Indicator is present. - if (in[(*in_pos)++] != 0x00) + if (in[(*in_pos)++] != INDEX_INDICATOR) return LZMA_DATA_ERROR; index_hash->sequence = SEQ_COUNT; |