diff options
author | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2009-11-08 14:18:54 -0500 |
---|---|---|
committer | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2009-11-08 14:18:54 -0500 |
commit | 0482924ccb582feface3fea972d4ca162f33f632 (patch) | |
tree | 8d13b6e9af0ce100031eed3e188365d55ea710d0 /libarchive/archive_read_support_format_ar.c | |
parent | 6b390462059048968607b883965340584008e0ee (diff) | |
download | libarchive-0482924ccb582feface3fea972d4ca162f33f632.tar.gz |
Value stored to 'ar' is never read.
Found by Clang Static Analyzer.
SVN-Revision: 1600
Diffstat (limited to 'libarchive/archive_read_support_format_ar.c')
-rw-r--r-- | libarchive/archive_read_support_format_ar.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libarchive/archive_read_support_format_ar.c b/libarchive/archive_read_support_format_ar.c index 587aad26..90fcc23b 100644 --- a/libarchive/archive_read_support_format_ar.c +++ b/libarchive/archive_read_support_format_ar.c @@ -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? |