]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Set archive_error_number to zero here. I'm a little uneasy about
authorTim Kientzle <kientzle@gmail.com>
Thu, 25 Feb 2010 16:58:00 +0000 (11:58 -0500)
committerTim Kientzle <kientzle@gmail.com>
Thu, 25 Feb 2010 16:58:00 +0000 (11:58 -0500)
this, as there are apparently libarchive uers that abuse archive_errno()
and this change is likely to mask bugs in such software.

SVN-Revision: 1989

libarchive/archive_util.c

index 4cf4de6f76bbc92459d0ed30db19e2a53971c0eb..fde9bbd867dbad99423f8dc618e1fc6f78c95423 100644 (file)
@@ -161,6 +161,7 @@ archive_clear_error(struct archive *a)
 {
        archive_string_empty(&a->error_string);
        a->error = NULL;
+       a->archive_error_number = 0;
 }
 
 void