From 49f9f01a7ff1f078ba84a7791f8689cc915183fc Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Sat, 8 Jan 2005 18:28:11 +0000 Subject: 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(+) (limited to 'lib') 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 -- cgit v1.3