diff options
author | cperciva <cperciva@FreeBSD.org> | 2008-07-10 09:50:55 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2008-07-10 09:50:55 +0000 |
commit | e539172ce07f9de8cfc3419e87eb4d638321579f (patch) | |
tree | bed61d5901aa1c3fa48aeb88edaa3ba1c555ca1e /lib | |
parent | 7371e4322f8c311aef71f30254c40ca66aff07b7 (diff) | |
download | FreeBSD-src-e539172ce07f9de8cfc3419e87eb4d638321579f.zip FreeBSD-src-e539172ce07f9de8cfc3419e87eb4d638321579f.tar.gz |
Garbage collect a variable which is assigned a value once but otherwise
is never used.
Found by: LLVM/Clang Static Analyzer
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libarchive/archive_read_support_format_tar.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libarchive/archive_read_support_format_tar.c b/lib/libarchive/archive_read_support_format_tar.c index 3dd4cda..160b0ca 100644 --- a/lib/libarchive/archive_read_support_format_tar.c +++ b/lib/libarchive/archive_read_support_format_tar.c @@ -2161,7 +2161,6 @@ utf8_decode(struct tar *tar, const char *src, size_t length) { wchar_t *dest; ssize_t n; - int err; /* Ensure pax_entry buffer is big enough. */ if (tar->pax_entry_length <= length) { @@ -2183,7 +2182,6 @@ utf8_decode(struct tar *tar, const char *src, size_t length) } dest = tar->pax_entry; - err = 0; while (length > 0) { n = UTF8_mbrtowc(dest, src, length); if (n < 0) |