about summary refs log tree commit diff
path: root/nix-repl.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-12-01T09·07+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-12-01T09·07+0100
commitf92408136ed08804bab14b3e2a2def9b8effd7eb (patch)
treee7eb4b729028a50db2902d30614e358202252fa9 /nix-repl.cc
parent71d61508f203e8d926a0365332ff218c1314f734 (diff)
Fix building against current Nix master
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);
 }