From d75d45bfa46cdd187e64c3332bbeead5b324e6a9 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Thu, 25 Feb 2010 11:58:00 -0500 Subject: [PATCH] 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 --- libarchive/archive_util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libarchive/archive_util.c b/libarchive/archive_util.c index 4cf4de6f7..fde9bbd86 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 -- 2.47.3