diff options
Diffstat (limited to 'src/fix.cc')
-rw-r--r-- | src/fix.cc | 4 |
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); |