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:
parent
08319f85fb
commit
031211eb44
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user