From: Michihiro NAKAJIMA Date: Sun, 8 Nov 2009 19:09:20 +0000 (-0500) Subject: Value stored to 'read_avail' is never read. X-Git-Tag: v2.8.0~217 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b77e809d6023e0bffb35e6b28249e4769a8fd2b;p=thirdparty%2Flibarchive.git Value stored to 'read_avail' is never read. Found by Clang Static Analyzer. SVN-Revision: 1598 --- diff --git a/libarchive/archive_read_support_compression_bzip2.c b/libarchive/archive_read_support_compression_bzip2.c index 15f2c9643..3b218a3f2 100644 --- a/libarchive/archive_read_support_compression_bzip2.c +++ b/libarchive/archive_read_support_compression_bzip2.c @@ -210,12 +210,11 @@ static ssize_t bzip2_filter_read(struct archive_read_filter *self, const void **p) { struct private_data *state; - size_t read_avail, decompressed; + size_t decompressed; const char *read_buf; ssize_t ret; state = (struct private_data *)self->data; - read_avail = 0; if (state->eof) { *p = NULL;