]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Although the value stored to 'ret2' is used in the enclosing expression,
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 9 Nov 2009 07:24:57 +0000 (02:24 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 9 Nov 2009 07:24:57 +0000 (02:24 -0500)
the value is never actually read from 'ret2'.

Found by Clang Static Analyzer.

SVN-Revision: 1622

libarchive/archive_write_set_compression_none.c

index 4e7344a8512a6d938f735da67c8f3fd5c1ae33a7..c2108e42102545fc5687a283fcc74b1942909a23 100644 (file)
@@ -208,11 +208,10 @@ archive_compressor_none_finish(struct archive_write *a)
        ssize_t target_block_length;
        ssize_t bytes_written;
        int ret;
-       int ret2;
        struct archive_none *state;
 
        state = (struct archive_none *)a->compressor.data;
-       ret = ret2 = ARCHIVE_OK;
+       ret = ARCHIVE_OK;
        if (a->client_writer == NULL) {
                archive_set_error(&a->archive, ARCHIVE_ERRNO_PROGRAMMER,
                    "No write callback is registered?  "