Skip to content

Commit

Permalink
Merge pull request #11837 from xokdvium/dev/fix-use-after-move-posix-…
Browse files Browse the repository at this point in the history
…source

fix(libutil/posix-source-accessor.cc): get rid of use-after-move bug
  • Loading branch information
Mic92 authored Nov 8, 2024
2 parents 7630fe7 + 3e0129c commit 492c678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libutil/posix-source-accessor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

namespace nix {

PosixSourceAccessor::PosixSourceAccessor(std::filesystem::path && root)
: root(std::move(root))
PosixSourceAccessor::PosixSourceAccessor(std::filesystem::path && argRoot)
: root(std::move(argRoot))
{
assert(root.empty() || root.is_absolute());
displayPrefix = root.string();
Expand Down

0 comments on commit 492c678

Please sign in to comment.