aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/get-drvs.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-02-02 12:38:37 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-02-02 12:38:37 +0100
commitcd35bbbeef72375873e396b9ffed14a4638693a8 (patch)
tree3db28adee43b34ce0875d27f21bab247a34e4586 /src/libexpr/get-drvs.cc
parent73d5f38a47e7c3dea62994cfb8f962976194f767 (diff)
parentd439dceb3bc47f10a6f1f5b8cf4a5b17adc80071 (diff)
Merge branch 'more-stringviews' of https://github.com/pennae/nix
Diffstat (limited to 'src/libexpr/get-drvs.cc')
-rw-r--r--src/libexpr/get-drvs.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/get-drvs.cc b/src/libexpr/get-drvs.cc
index 25fd9b949..2651266b2 100644
--- a/src/libexpr/get-drvs.cc
+++ b/src/libexpr/get-drvs.cc
@@ -104,7 +104,7 @@ DrvInfo::Outputs DrvInfo::queryOutputs(bool onlyOutputsToInstall)
/* For each output... */
for (auto elem : i->value->listItems()) {
/* Evaluate the corresponding set. */
- string name = state->forceStringNoCtx(*elem, *i->pos);
+ string name(state->forceStringNoCtx(*elem, *i->pos));
Bindings::iterator out = attrs->find(state->symbols.create(name));
if (out == attrs->end()) continue; // FIXME: throw error?
state->forceAttrs(*out->value);