]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Value stored to 'state' is never read.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 8 Nov 2009 20:09:50 +0000 (15:09 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 8 Nov 2009 20:09:50 +0000 (15:09 -0500)
Found by Clang Static Analyzer.

SVN-Revision: 1609

libarchive/archive_write_set_compression_program.c

index 0056ed136155325493de1e6e09ee2a825fda49b5..e454843ba020533621a14085de588ded9afc8b62 100644 (file)
@@ -230,11 +230,9 @@ static int
 archive_compressor_program_write(struct archive_write *a, const void *buff,
     size_t length)
 {
-       struct private_data *state;
        ssize_t ret;
        const char *buf;
 
-       state = (struct private_data *)a->compressor.data;
        if (a->client_writer == NULL) {
                archive_set_error(&a->archive, ARCHIVE_ERRNO_PROGRAMMER,
                    "No write callback is registered?  "