From db714d30e0c74d1dd4af1a23ed62b44e0e8e4efc Mon Sep 17 00:00:00 2001 From: Jia Tan Date: Wed, 17 Aug 2022 17:59:51 +0800 Subject: liblzma: Replaced hardcoded 0x0 index indicator byte with macro --- src/liblzma/common/stream_decoder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/liblzma/common/stream_decoder.c') 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; } -- cgit v1.2.3