]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Value stored to 'used' is never read.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 9 Nov 2009 07:06:16 +0000 (02:06 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 9 Nov 2009 07:06:16 +0000 (02:06 -0500)
Found by Clang Static Analyzer.

SVN-Revision: 1619

libarchive/archive_read_support_compression_uu.c

index 24e3e8fb22dc20e6c3f46b6cab3b71223574406d..ee844ce2743f50ab6245f8dd093812f054722b9f 100644 (file)
@@ -459,7 +459,6 @@ read_more:
                        if (uudecode->in_buff != b)
                                memmove(uudecode->in_buff, b, len);
                        uudecode->in_cnt = len;
-                       used += len;
                        if (total == 0) {
                                /* Do not return 0; it means end-of-file.
                                 * We should try to read bytes more. */