Clear the error buffer on entry

to archive_read_next_header so the
next error doesn't just get appended.

MFC after: 7 days
This commit is contained in:
Tim Kientzle 2005-01-08 18:28:11 +00:00
parent e075f345b6
commit 49f9f01a7f

View File

@ -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