diff options
Diffstat (limited to 'third_party/nix/src/libexpr/eval.cc')
-rw-r--r-- | third_party/nix/src/libexpr/eval.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/nix/src/libexpr/eval.cc b/third_party/nix/src/libexpr/eval.cc index f733a86a8930..56e400620424 100644 --- a/third_party/nix/src/libexpr/eval.cc +++ b/third_party/nix/src/libexpr/eval.cc @@ -1240,9 +1240,9 @@ void ExprOpUpdate::eval(EvalState& state, Env& env, Value& dest) { state.nrOpUpdates++; - state.mkAttrs(dest, /* capacity = */ 0); + state.mkAttrs(dest, v1.attrs->size() + v2.attrs->size()); - /* Merge the sets, preferring values from the second set. */ + // Merge the sets, preferring values from the second set. dest.attrs->merge(*v1.attrs); dest.attrs->merge(*v2.attrs); } |