about summary refs log tree commit diff
path: root/nix-repl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'nix-repl.cc')
-rw-r--r--nix-repl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/nix-repl.cc b/nix-repl.cc
index 51d297d1d175..343d3f9f3bff 100644
--- a/nix-repl.cc
+++ b/nix-repl.cc
@@ -378,7 +378,7 @@ void NixRepl::loadFile(const Path & path)
     loadedFiles.push_back(path);
     Value v, v2;
     state.evalFile(lookupFileArg(state, path), v);
-    Bindings bindings;
+    Bindings & bindings(*state.allocBindings(0));
     state.autoCallFunction(bindings, v, v2);
     addAttrsToScope(v2);
 }