kutils: skip the data when the path does not match in KArchive::data()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-05-18 05:12:00 +03:00
parent 969f3e428e
commit 6f968d6f03

View file

@ -1191,6 +1191,7 @@ QByteArray KArchive::data(const QString &path) const
break;
}
archive_read_data_skip(readarchive);
ret = archive_read_next_header(readarchive, &entry);
}