(parse_and_report): If cache_file is "<none>", blank it out. This
steps around the logic that sets the default name.
This commit is contained in:
parent
79f9a1efb5
commit
e6c4532c56
1 changed files with 5 additions and 2 deletions
7
main.cc
7
main.cc
|
|
@ -213,11 +213,14 @@ int parse_and_report(int argc, char * argv[], char * envp[])
|
|||
|
||||
if (config.init_file.empty())
|
||||
config.init_file = home + "/.ledgerrc";
|
||||
if (config.cache_file.empty())
|
||||
config.cache_file = home + "/.ledger-cache";
|
||||
if (config.price_db.empty())
|
||||
config.price_db = home + "/.pricedb";
|
||||
|
||||
if (config.cache_file.empty())
|
||||
config.cache_file = home + "/.ledger-cache";
|
||||
else if (config.cache_file == "<none>")
|
||||
config.cache_file = "";
|
||||
|
||||
if (config.data_file == config.cache_file)
|
||||
config.use_cache = false;
|
||||
DEBUG_PRINT("ledger.config.cache", "2. use_cache = " << config.use_cache);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue