]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Remove dead assignment that Clang Static Analyzer pointed out.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 11 Sep 2012 10:50:28 +0000 (19:50 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 11 Sep 2012 10:50:28 +0000 (19:50 +0900)
tar/util.c

index 7e705c2be2284a2fa60159be3e7a896aeba87df1..70788aee1da299675cd6afabfc19bb7f88fcd8e8 100644 (file)
@@ -148,7 +148,7 @@ safe_fprintf(FILE *f, const char *fmt, ...)
 
        /* Note: mbrtowc() has a cleaner API, but mbtowc() seems a bit
         * more portable, so we use that here instead. */
-       n = mbtowc(NULL, NULL, 1); /* Reset the shift state. */
+       (void)mbtowc(NULL, NULL, 1); /* Reset the shift state. */
 
        /* Write data, expanding unprintable characters. */
        p = fmtbuff;