about summary refs log tree commit diff
diff options
context:
space:
mode:
-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);
 }