summaryrefslogtreecommitdiff
path: root/config.cc
diff options
context:
space:
mode:
Diffstat (limited to 'config.cc')
-rw-r--r--config.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.cc b/config.cc
index 99c4d4b4..06e6f4a7 100644
--- a/config.cc
+++ b/config.cc
@@ -20,6 +20,8 @@ config_t::config_t()
{
if (const char * p = std::getenv("HOME"))
init_file = cache_file = price_db = p;
+ else
+ init_file = cache_file = price_db = "";
init_file += "/.ledgerrc";
cache_file += "/.ledger";