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

SVN-Revision: 1600

libarchive/archive_read_support_format_ar.c

index 587aad266dfd8f6944cc46761ed4925c0923324a..90fcc23b242022c691b0b7abba0c06d54316ed5a 100644 (file)
@@ -134,7 +134,6 @@ archive_read_format_ar_cleanup(struct archive_read *a)
 static int
 archive_read_format_ar_bid(struct archive_read *a)
 {
-       struct ar *ar;
        const void *h;
 
        if (a->archive.archive_format != 0 &&
@@ -142,8 +141,6 @@ archive_read_format_ar_bid(struct archive_read *a)
            ARCHIVE_FORMAT_AR)
                return(0);
 
-       ar = (struct ar *)(a->format->data);
-
        /*
         * Verify the 8-byte file signature.
         * TODO: Do we need to check more than this?