]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
typo in the code assigning to the wrong var; realistically ret2 probably isn't needed...
authorBrian Harring <ferringb@gmail.com>
Mon, 19 Apr 2010 05:13:04 +0000 (01:13 -0400)
committerBrian Harring <ferringb@gmail.com>
Mon, 19 Apr 2010 05:13:04 +0000 (01:13 -0400)
SVN-Revision: 2267

libarchive/archive_write_set_format_gnutar.c

index 2e7e983f5f9e0ca660c10f56c522208419a924ae..3bcf60d1349aaa3bc4193d625416cbb76af8b6e8 100644 (file)
@@ -348,7 +348,7 @@ archive_write_gnutar_header(struct archive_write *a, struct archive_entry *entry
        ret = archive_format_gnutar_header(a, buff, entry, tartype);
        if (ret < ARCHIVE_WARN)
                return (ret);
-       ret = __archive_write_output(a, buff, 512);
+       ret2 = __archive_write_output(a, buff, 512);
        if (ret2 < ARCHIVE_WARN)
                return (ret2);
        if (ret2 < ret)