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

SVN-Revision: 1595

libarchive/archive_write_set_compression_gzip.c

index a8b1c33360de8ba0bf7f811b5920357c2a18d9ac..48b65a9a00e8c43d49cc443a7a62971ef74f46c5 100644 (file)
@@ -365,7 +365,6 @@ archive_compressor_gzip_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;