summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2005-01-08 18:28:11 +0000
committerkientzle <kientzle@FreeBSD.org>2005-01-08 18:28:11 +0000
commit031211eb44ff00b2cacf7d8968d13fae83c229f4 (patch)
tree774439b52b2e8f51ee3bf149d514c2ca99f92c03 /lib
parent08319f85fb7bb2d5a5d31a41885cabcd5c665233 (diff)
downloadFreeBSD-src-031211eb44ff00b2cacf7d8968d13fae83c229f4.zip
FreeBSD-src-031211eb44ff00b2cacf7d8968d13fae83c229f4.tar.gz
Clear the error buffer on entry
to archive_read_next_header so the next error doesn't just get appended. MFC after: 7 days
Diffstat (limited to 'lib')
-rw-r--r--lib/libarchive/archive_read.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libarchive/archive_read.c b/lib/libarchive/archive_read.c
index 39ff7a8..15fa9f7 100644
--- a/lib/libarchive/archive_read.c
+++ b/lib/libarchive/archive_read.c
@@ -213,6 +213,7 @@ archive_read_next_header(struct archive *a, struct archive_entry **entryp)
*entryp = NULL;
entry = a->entry;
archive_entry_clear(entry);
+ archive_string_empty(&a->error_string);
/*
* If client didn't consume entire data, skip any remainder
OpenPOWER on IntegriCloud