mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
fix: segmentation fault on canonicalize method
This commit is contained in:
parent
f0801fb7c7
commit
027c2f0a31
|
@ -61,7 +61,11 @@ path manifest::canonicalize(const std::vector<xlnt::relationship> &rels) const
|
||||||
|
|
||||||
if (component == "..")
|
if (component == "..")
|
||||||
{
|
{
|
||||||
absolute_parts.pop_back();
|
if (absolute_parts.size() > 0)
|
||||||
|
{
|
||||||
|
absolute_parts.pop_back();
|
||||||
|
}
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user