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

SVN-Revision: 1612

libarchive/archive_write_set_format_cpio.c

index c293ef2dbad3404e2b84f4264cec77584962922e..4457496d1515fb1a3a604910ebcfa40907449e2f 100644 (file)
@@ -228,11 +228,9 @@ format_octal_recursive(int64_t v, char *p, int s)
 static int
 archive_write_cpio_finish(struct archive_write *a)
 {
-       struct cpio *cpio;
        int er;
        struct archive_entry *trailer;
 
-       cpio = (struct cpio *)a->format_data;
        trailer = archive_entry_new();
        /* nlink = 1 here for GNU cpio compat. */
        archive_entry_set_nlink(trailer, 1);