about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nix/command.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/command.cc b/src/nix/command.cc
index f90d848f2a40..058a7548c893 100644
--- a/src/nix/command.cc
+++ b/src/nix/command.cc
@@ -97,7 +97,7 @@ ref<Store> StoreCommand::createStore()
 
 void StoreCommand::run()
 {
-    run(createStore());
+    run(getStore());
 }
 
 StorePathsCommand::StorePathsCommand()