Fix for segfault in path::pop_back

This commit is contained in:
bram
2023-01-08 20:58:59 +01:00
committed by Bartek Kryza
parent 61dcf9ef04
commit b5cf78ce82

View File

@@ -128,7 +128,13 @@ public:
}
}
void pop_back() { path_.pop_back(); }
void pop_back()
{
if (!path_.empty())
{
path_.pop_back();
}
}
std::optional<path> parent() const
{