about summary refs log tree commit diff
path: root/src/nix-instantiate/nix-instantiate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-instantiate/nix-instantiate.cc')
-rw-r--r--src/nix-instantiate/nix-instantiate.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nix-instantiate/nix-instantiate.cc b/src/nix-instantiate/nix-instantiate.cc
index 7a38f2ac4269..6bd1a9d6ca32 100644
--- a/src/nix-instantiate/nix-instantiate.cc
+++ b/src/nix-instantiate/nix-instantiate.cc
@@ -159,8 +159,7 @@ int main(int argc, char * * argv)
         EvalState state(searchPath);
         state.repair = repair;
 
-        Bindings autoArgs;
-        evalAutoArgs(state, autoArgs_, autoArgs);
+        Bindings & autoArgs(*evalAutoArgs(state, autoArgs_));
 
         if (evalOnly && !wantsReadWrite)
             settings.readOnlyMode = true;