fix: segmentation fault on canonicalize method

This commit is contained in:
Luca Errani 2022-11-21 12:30:42 +01:00
parent f0801fb7c7
commit 027c2f0a31

View File

@ -60,8 +60,12 @@ path manifest::canonicalize(const std::vector<xlnt::relationship> &rels) const
if (component == ".") continue;
if (component == "..")
{
if (absolute_parts.size() > 0)
{
absolute_parts.pop_back();
}
continue;
}