From 031211eb44ff00b2cacf7d8968d13fae83c229f4 Mon Sep 17 00:00:00 2001 From: kientzle Date: Sat, 8 Jan 2005 18:28:11 +0000 Subject: [PATCH] Clear the error buffer on entry to archive_read_next_header so the next error doesn't just get appended. MFC after: 7 days --- lib/libarchive/archive_read.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libarchive/archive_read.c b/lib/libarchive/archive_read.c index 39ff7a8ce128..15fa9f7ac76f 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