]> 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 20:12:17 +0000 (15:12 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 8 Nov 2009 20:12:17 +0000 (15:12 -0500)
Found by Clang Static Analyzer.

SVN-Revision: 1610

libarchive/archive_write_set_compression_xz.c

index 8396252527cf0c4d09c1bb3179ac8ee79932072d..81733170b6a30764cdcb8b6c228b1938e1df2f5f 100644 (file)
@@ -323,7 +323,6 @@ archive_compressor_xz_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;