mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 02:36:16 +02:00
Merge pull request #11837 from xokdvium/dev/fix-use-after-move-posix-source
fix(libutil/posix-source-accessor.cc): get rid of use-after-move bug
This commit is contained in:
commit
492c678162
1 changed files with 2 additions and 2 deletions
|
@ -7,8 +7,8 @@
|
||||||
|
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
|
||||||
PosixSourceAccessor::PosixSourceAccessor(std::filesystem::path && root)
|
PosixSourceAccessor::PosixSourceAccessor(std::filesystem::path && argRoot)
|
||||||
: root(std::move(root))
|
: root(std::move(argRoot))
|
||||||
{
|
{
|
||||||
assert(root.empty() || root.is_absolute());
|
assert(root.empty() || root.is_absolute());
|
||||||
displayPrefix = root.string();
|
displayPrefix = root.string();
|
||||||
|
|
Loading…
Reference in a new issue