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
e075f345b6
commit
49f9f01a7f
@ -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