From: Michihiro NAKAJIMA Date: Sun, 8 Nov 2009 20:12:17 +0000 (-0500) Subject: Value stored to 'target_block_length' is never read. X-Git-Tag: v2.8.0~205 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6e0a6d68931252cd641263342a8bcaca187655b;p=thirdparty%2Flibarchive.git Value stored to 'target_block_length' is never read. Found by Clang Static Analyzer. SVN-Revision: 1610 --- diff --git a/libarchive/archive_write_set_compression_xz.c b/libarchive/archive_write_set_compression_xz.c index 839625252..81733170b 100644 --- a/libarchive/archive_write_set_compression_xz.c +++ b/libarchive/archive_write_set_compression_xz.c @@ -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;