about summary refs log tree commit diff
path: root/src/libexpr/primops.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-04-16T14·03+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-04-16T14·03+0000
commit8ca4a001cb9e8ca2556c26a1b559b0322a8fb46a (patch)
tree2f068d0f0e4e4ff6cb29e01e2859c8d099c34eaa /src/libexpr/primops.cc
parent497e4ad12650e27ecbaf0e056fe0c54bc12a138b (diff)
* Improve sharing a bit.
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r--src/libexpr/primops.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index ae17506ceed9..c4495e81db49 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -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);
     }
 }