about summary refs log tree commit diff
path: root/src/fix.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-10-14T15·33+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-10-14T15·33+0000
commitc190f051ac34b2df51402bf593150de97f491d86 (patch)
treeb08f3b05b2f39e1d1c48ce833711516671dc568a /src/fix.cc
parent1d61e473c88568fae7ef5edebc77acd53e4126f9 (diff)
* Automatically recover the database in case of a crash.
Diffstat (limited to 'src/fix.cc')
-rw-r--r--src/fix.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fix.cc b/src/fix.cc
index 71fd068775be..cbf759b31763 100644
--- a/src/fix.cc
+++ b/src/fix.cc
@@ -438,8 +438,6 @@ static void printNixExpr(EvalState & state, Expr e)
 
 void run(Strings args)
 {
-    openDB();
-
     EvalState state;
     Strings files;
     bool readStdin = false;
@@ -467,6 +465,8 @@ void run(Strings args)
             files.push_back(arg);
     }
 
+    openDB();
+
     if (readStdin) {
         Expr e = evalStdin(state);
         printNixExpr(state, e);