about summary refs log tree commit diff
path: root/src/libexpr/attr-path.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-05-07T12·11+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-05-07T12·11+0000
commite2d5e40f4fdd98e5d2ad7b77c00fb97caa3aa259 (patch)
treeb3b8ccf4d534ae55949b02107887574424041668 /src/libexpr/attr-path.cc
parent84ce7ac76feab6e9a5c074bd1b9550ae543d1db8 (diff)
* Keep track of the source positions of attributes.
Diffstat (limited to 'src/libexpr/attr-path.cc')
-rw-r--r--src/libexpr/attr-path.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/attr-path.cc b/src/libexpr/attr-path.cc
index 769acb6b8c0f..0660ba1c1efc 100644
--- a/src/libexpr/attr-path.cc
+++ b/src/libexpr/attr-path.cc
@@ -48,7 +48,7 @@ void findAlongAttrPath(EvalState & state, const string & attrPath,
             Bindings::iterator a = v.attrs->find(state.symbols.create(attr));
             if (a == v.attrs->end())
                 throw Error(format("attribute `%1%' in selection path `%2%' not found") % attr % curPath);
-            v = a->second;
+            v = a->second.value;
         }
 
         else if (apType == apIndex) {