about summary refs log tree commit diff
path: root/src/libexpr/common-opts.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/common-opts.cc
parent84ce7ac76feab6e9a5c074bd1b9550ae543d1db8 (diff)
* Keep track of the source positions of attributes.
Diffstat (limited to 'src/libexpr/common-opts.cc')
-rw-r--r--src/libexpr/common-opts.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/common-opts.cc b/src/libexpr/common-opts.cc
index a25317de1346..5a4856568b4b 100644
--- a/src/libexpr/common-opts.cc
+++ b/src/libexpr/common-opts.cc
@@ -20,7 +20,7 @@ bool parseOptionArg(const string & arg, Strings::iterator & i,
     if (i == argsEnd) throw error;
     string value = *i++;
 
-    Value & v(autoArgs[state.symbols.create(name)]);
+    Value & v(autoArgs[state.symbols.create(name)].value);
 
     if (arg == "--arg")
         state.mkThunk_( v, parseExprFromString(state, value, absPath(".")));