From: Brian Harring Date: Mon, 19 Apr 2010 05:13:04 +0000 (-0400) Subject: typo in the code assigning to the wrong var; realistically ret2 probably isn't needed... X-Git-Tag: v3.0.0a~1095 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=72a0a54e23f8727c8317cd4246b828ca72f2e30a;p=thirdparty%2Flibarchive.git typo in the code assigning to the wrong var; realistically ret2 probably isn't needed, but preserving the original intent (just fixing it to work) SVN-Revision: 2267 --- diff --git a/libarchive/archive_write_set_format_gnutar.c b/libarchive/archive_write_set_format_gnutar.c index 2e7e983f5..3bcf60d13 100644 --- a/libarchive/archive_write_set_format_gnutar.c +++ b/libarchive/archive_write_set_format_gnutar.c @@ -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)