mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
* Improve sharing a bit.
This commit is contained in:
parent
497e4ad126
commit
8ca4a001cb
2 changed files with 8 additions and 5 deletions
|
@ -733,7 +733,7 @@ static void prim_listToAttrs(EvalState & state, Value * * args, Value & v)
|
|||
if (j == v2.attrs->end())
|
||||
throw TypeError("`value' attribute missing in a call to `listToAttrs'");
|
||||
|
||||
(*v.attrs)[state.symbols.create(name)] = j->second; // !!! sharing?
|
||||
mkCopy((*v.attrs)[state.symbols.create(name)], j->second);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue