]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Value stored to 'target_block_length' is never read.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 8 Nov 2009 19:54:20 +0000 (14:54 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 8 Nov 2009 19:54:20 +0000 (14:54 -0500)
Found by Clang Static Analyzer.

SVN-Revision: 1606

libarchive/archive_write_set_compression_bzip2.c

index 17f6a0a4d3c91d622eea095628817a21eedb6b8b..c85db929562b94206960d11245d177bd831bc544 100644 (file)
@@ -291,7 +291,6 @@ archive_compressor_bzip2_finish(struct archive_write *a)
                block_length = state->stream.next_out - state->compressed;
 
                /* Tricky calculation to determine size of last block. */
-               target_block_length = block_length;
                if (a->bytes_in_last_block <= 0)
                        /* Default or Zero: pad to full block */
                        target_block_length = a->bytes_per_block;