summaryrefslogtreecommitdiffstats
path: root/LzmaDec.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--LzmaDec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/LzmaDec.c b/LzmaDec.c
index 1236bd3..bd2a45a 100644
--- a/LzmaDec.c
+++ b/LzmaDec.c
@@ -716,8 +716,8 @@ static bool LzmaDec_DecodeToDic(CLzmaDec *p, uint32_t dicLimit,
*status = LZMA_STATUS_NEEDS_MORE_INPUT;
return true;
}
- if (p->tempBuf[0] != 0)
- return false;
+ /* check first byte of the LZMA stream */
+ if (p->tempBuf[0] != 0) return false;
LzmaDec_InitRc(p, p->tempBuf);
p->tempBufSize = 0;