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

SVN-Revision: 1608

libarchive/archive_write_set_compression_none.c

index bdecb240d9f46fa367cffcb3a10e94f33a230e66..4e7344a8512a6d938f735da67c8f3fd5c1ae33a7 100644 (file)
@@ -225,7 +225,6 @@ archive_compressor_none_finish(struct archive_write *a)
                block_length = state->buffer_size - state->avail;
 
                /* 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;