]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Value stored to 'ret' is never read.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 8 Nov 2009 20:15:34 +0000 (15:15 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 8 Nov 2009 20:15:34 +0000 (15:15 -0500)
Found by Clang Static Analyzer.

SVN-Revision: 1611

libarchive/archive_write_set_format_ar.c

index 4ed2c6791706cfe5fda7c22344752be474b24118..4bfb599a0bae978d66773cead5f4a2b262af1c05 100644 (file)
@@ -145,7 +145,6 @@ archive_write_ar_header(struct archive_write *a, struct archive_entry *entry)
        const char *filename;
        int64_t size;
 
-       ret = 0;
        append_fn = 0;
        ar = (struct ar_w *)a->format_data;
        ar->is_strtab = 0;