aboutsummaryrefslogtreecommitdiff
path: root/src/nix-copy-closure
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-07-19 12:01:06 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-07-22 09:59:51 +0200
commit668abd3e5777d29910068b955fb36bf69e7b38b0 (patch)
tree59b670b09719fb0f7721468d12f0a1ad3f8d1b52 /src/nix-copy-closure
parent8d9f7048cd3b09fb58f6bad0328f644b0ddaaa16 (diff)
copyPaths: Pass store by reference
Diffstat (limited to 'src/nix-copy-closure')
-rwxr-xr-xsrc/nix-copy-closure/nix-copy-closure.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-copy-closure/nix-copy-closure.cc b/src/nix-copy-closure/nix-copy-closure.cc
index 7c38e55e4..841d50fd3 100755
--- a/src/nix-copy-closure/nix-copy-closure.cc
+++ b/src/nix-copy-closure/nix-copy-closure.cc
@@ -54,7 +54,7 @@ static int main_nix_copy_closure(int argc, char ** argv)
for (auto & path : storePaths)
storePaths2.insert(from->followLinksToStorePath(path));
- copyClosure(from, to, storePaths2, NoRepair, NoCheckSigs, useSubstitutes);
+ copyClosure(*from, *to, storePaths2, NoRepair, NoCheckSigs, useSubstitutes);
return 0;
}