mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
Fix CanonPath::dirOf() returning a string_view of a temporary
https://hydra.nixos.org/build/202837872
This commit is contained in:
parent
17373debe9
commit
64c60f7241
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ public:
|
|||
std::optional<std::string_view> dirOf() const
|
||||
{
|
||||
if (isRoot()) return std::nullopt;
|
||||
return path.substr(0, path.rfind('/'));
|
||||
return ((std::string_view) path).substr(0, path.rfind('/'));
|
||||
}
|
||||
|
||||
std::optional<std::string_view> baseName() const
|
||||
|
|
Loading…
Reference in a new issue