about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libexpr/eval.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index 3da9cbc4d57e..ef1408b50358 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -200,7 +200,7 @@ LocalNoInline(ATerm expandRec(EvalState & state, ATerm e, ATermList rbnds, ATerm
     ATermMap overrides;
     if (eOverrides) {
         eOverrides = evalExpr(state, eOverrides);
-        queryAllAttrs(overrides, overrides, false);
+        queryAllAttrs(eOverrides, overrides, false);
         foreach (ATermMap::const_iterator, i, overrides)
             subs.set(i->key, i->value);
     }