diff options
Diffstat (limited to 'archival/libarchive/bz/compress.c')
-rw-r--r-- | archival/libarchive/bz/compress.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/archival/libarchive/bz/compress.c b/archival/libarchive/bz/compress.c index f1393242d..f65076758 100644 --- a/archival/libarchive/bz/compress.c +++ b/archival/libarchive/bz/compress.c | |||
@@ -665,6 +665,8 @@ void sendMTFValues(EState* s) | |||
665 | static | 665 | static |
666 | void BZ2_compressBlock(EState* s, int is_last_block) | 666 | void BZ2_compressBlock(EState* s, int is_last_block) |
667 | { | 667 | { |
668 | int32_t origPtr = origPtr; | ||
669 | |||
668 | if (s->nblock > 0) { | 670 | if (s->nblock > 0) { |
669 | BZ_FINALISE_CRC(s->blockCRC); | 671 | BZ_FINALISE_CRC(s->blockCRC); |
670 | s->combinedCRC = (s->combinedCRC << 1) | (s->combinedCRC >> 31); | 672 | s->combinedCRC = (s->combinedCRC << 1) | (s->combinedCRC >> 31); |
@@ -672,7 +674,7 @@ void BZ2_compressBlock(EState* s, int is_last_block) | |||
672 | if (s->blockNo > 1) | 674 | if (s->blockNo > 1) |
673 | s->posZ = s->zbits; // was: s->numZ = 0; | 675 | s->posZ = s->zbits; // was: s->numZ = 0; |
674 | 676 | ||
675 | BZ2_blockSort(s); | 677 | origPtr = BZ2_blockSort(s); |
676 | } | 678 | } |
677 | 679 | ||
678 | s->zbits = &((uint8_t*)s->arr2)[s->nblock]; | 680 | s->zbits = &((uint8_t*)s->arr2)[s->nblock]; |
@@ -713,7 +715,7 @@ void BZ2_compressBlock(EState* s, int is_last_block) | |||
713 | */ | 715 | */ |
714 | bsW1_0(s); | 716 | bsW1_0(s); |
715 | 717 | ||
716 | bsW(s, 24, s->origPtr); | 718 | bsW(s, 24, origPtr); |
717 | generateMTFValues(s); | 719 | generateMTFValues(s); |
718 | sendMTFValues(s); | 720 | sendMTFValues(s); |
719 | } | 721 | } |