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

SVN-Revision: 1617

libarchive/archive_util.c

index 709c66cab766df0ea1d5a679133436434885f9bb..db3684185abd829839373f8b3013ebe72a2e290f 100644 (file)
@@ -187,12 +187,10 @@ void
 __archive_errx(int retvalue, const char *msg)
 {
        static const char *msg1 = "Fatal Internal Error in libarchive: ";
-       size_t s;
 
-       s = write(2, msg1, strlen(msg1));
-       s = write(2, msg, strlen(msg));
-       s = write(2, "\n", 1);
-       (void)s; /* UNUSED */
+       (void)write(2, msg1, strlen(msg1));
+       (void)write(2, msg, strlen(msg));
+       (void)write(2, "\n", 1);
        exit(retvalue);
 }