aboutsummaryrefslogtreecommitdiff
path: root/src/nix/installables.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-02-07 14:08:24 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-03-24 14:06:47 +0100
commitc1ca4f0accdb96295b27dadacd20b3db745e1d2d (patch)
tree2204ee99bd386dda2816b5e13d0485bea93a675b /src/nix/installables.cc
parent1eb952d27ac0714a99a5f7b0e8c7034e7ac0bc0d (diff)
findAlongAttrPath(): Return position
(cherry picked from commit 0b013a54dc570395bed887369f8dd622b8ce337b)
Diffstat (limited to 'src/nix/installables.cc')
-rw-r--r--src/nix/installables.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/installables.cc b/src/nix/installables.cc
index 8ce6bd06e..eb6fca62b 100644
--- a/src/nix/installables.cc
+++ b/src/nix/installables.cc
@@ -193,7 +193,7 @@ struct InstallableAttrPath : InstallableValue
Bindings & autoArgs = *cmd.getAutoArgs(state);
- Value * v = findAlongAttrPath(state, attrPath, autoArgs, *source);
+ auto v = findAlongAttrPath(state, attrPath, autoArgs, *source).first;
state.forceValue(*v);
return v;