summaryrefslogtreecommitdiff
path: root/libarchive/archive_util.c
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@gmail.com>2010-02-25 11:58:00 -0500
committerTim Kientzle <kientzle@gmail.com>2010-02-25 11:58:00 -0500
commitd75d45bfa46cdd187e64c3332bbeead5b324e6a9 (patch)
tree09d8240cd20261cbeb43f6d2898f7c7c4dce0f1e /libarchive/archive_util.c
parent5cd1e030b1b5fe9889aba8d39d260c4435c05309 (diff)
downloadlibarchive-d75d45bfa46cdd187e64c3332bbeead5b324e6a9.tar.gz
Set archive_error_number to zero here. I'm a little uneasy about
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
Diffstat (limited to 'libarchive/archive_util.c')
-rw-r--r--libarchive/archive_util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libarchive/archive_util.c b/libarchive/archive_util.c
index 4cf4de6f..fde9bbd8 100644
--- a/libarchive/archive_util.c
+++ b/libarchive/archive_util.c
@@ -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