aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-08-24 14:11:03 +0200
committerEelco Dolstra <edolstra@gmail.com>2022-08-24 14:11:03 +0200
commit8d906b1f3bd4343b6b309ddfca824d5dd00a09b1 (patch)
tree227342d6b21f44469932d39aa8a6daea0f2cf5d0 /src
parentf0358ed4650e4608a383bd9f59ee23545f86c4ad (diff)
Fix macOS build
Diffstat (limited to 'src')
-rw-r--r--src/libstore/store-api.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index 9c3a0b3d6..2cd6c15ec 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -307,8 +307,9 @@ void Store::addMultipleToStore(
[&](const StorePath & path) {
checkInterrupt();
- auto & [info_, source] = *infosMap.at(path);
+ auto & [info_, source_] = *infosMap.at(path);
auto info = info_;
+ auto source = std::move(source_);
info.ultimate = false;
/* Make sure that the Source object is destroyed when