summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-09-20 06:18:24 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-09-20 06:18:24 -0400
commite59ba748140d9abb5bfab124b5e9037cdae2ec4b (patch)
tree25d103df732ad94a22cb3e0ed4fe98115b0bddb9
parent2010be07f07a1fab0d92a4f7a2ab522c411bec05 (diff)
downloadfork-ledger-e59ba748140d9abb5bfab124b5e9037cdae2ec4b.tar.gz
fork-ledger-e59ba748140d9abb5bfab124b5e9037cdae2ec4b.tar.bz2
fork-ledger-e59ba748140d9abb5bfab124b5e9037cdae2ec4b.zip
if --file and the --cache refer to the same file, don't use caching
-rw-r--r--main.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.cc b/main.cc
index db1eacd4..10e57f2a 100644
--- a/main.cc
+++ b/main.cc
@@ -188,6 +188,9 @@ int parse_and_report(int argc, char * argv[], char * envp[])
process_option(config_options, "price-exp", p);
#endif
+ if (config.data_file == config.cache_file)
+ config.use_cache = false;
+
TIMER_STOP(process_opts);
// Read the command word, canonicalize it to its one letter form,