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

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