aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/xzcat.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-04-16 00:05:44 -0500
committerRob Landley <rob@landley.net>2020-04-16 00:05:44 -0500
commitd14d54859d5fa3716c96c86d1a1e8a1bacb1dbd8 (patch)
tree4cee19b8be80339a958de746da4db2fb85f4f290 /toys/pending/xzcat.c
parente605a828b84aebc5506c63508ccacdc904bab5ec (diff)
downloadtoybox-d14d54859d5fa3716c96c86d1a1e8a1bacb1dbd8.tar.gz
Weed-whack a few warnings out of pending so allyesconfig is less noisy.
Diffstat (limited to 'toys/pending/xzcat.c')
-rw-r--r--toys/pending/xzcat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toys/pending/xzcat.c b/toys/pending/xzcat.c
index 55e0a051..6fdf3428 100644
--- a/toys/pending/xzcat.c
+++ b/toys/pending/xzcat.c
@@ -2570,7 +2570,7 @@ static enum xz_ret dec_block(struct xz_dec *s, struct xz_buf *b)
if (s->check_type == XZ_CHECK_CRC32)
s->crc = xz_crc32(b->out + s->out_start,
b->out_pos - s->out_start, s->crc);
- else if (s->check_type == XZ_CHECK_CRC64)
+ else if (s->check_type == XZ_CHECK_CRC64) {
s->crc = ~(s->crc);
size_t size = b->out_pos - s->out_start;
uint8_t *buf = b->out + s->out_start;
@@ -2579,6 +2579,7 @@ static enum xz_ret dec_block(struct xz_dec *s, struct xz_buf *b)
--size;
}
s->crc=~(s->crc);
+ }
if (ret == XZ_STREAM_END) {
if (s->block_header.compressed != VLI_UNKNOWN