about summary refs log tree commit diff
path: root/src/libexpr/parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexpr/parser.y')
-rw-r--r--src/libexpr/parser.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y
index b362443523..06fcc72fc5 100644
--- a/src/libexpr/parser.y
+++ b/src/libexpr/parser.y
@@ -461,8 +461,7 @@ static Expr * parse(EvalState & state, const char * text,
     if (res) throw ParseError(data.error);
 
     try {
-        StaticEnv env(false, 0);
-        data.result->bindVars(env);
+        data.result->bindVars(state.staticBaseEnv);
     } catch (Error & e) {
         throw ParseError(format("%1%, in `%2%'") % e.msg() % path);
     }