]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Although the value stored to 'p' is used in the enclosing expression,
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 9 Nov 2009 07:21:54 +0000 (02:21 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 9 Nov 2009 07:21:54 +0000 (02:21 -0500)
the value is never actually read from 'p'

Found by Clang Static Analyzer.

SVN-Revision: 1621

libarchive/archive_read_support_format_raw.c

index 44b0aa0fbfc282ca150289b600c1160462b66472..9f538e0e67f0bab6dd89d7193f8f408134c89e46 100644 (file)
@@ -89,9 +89,8 @@ archive_read_support_format_raw(struct archive *_a)
 static int
 archive_read_format_raw_bid(struct archive_read *a)
 {
-       const char *p;
 
-       if ((p = __archive_read_ahead(a, 1, NULL)) == NULL)
+       if (__archive_read_ahead(a, 1, NULL) == NULL)
                return (-1);
        return (1);
 }