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:
kientzle 2005-01-08 18:28:11 +00:00
parent 08319f85fb
commit 031211eb44

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