diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2012-04-12 18:22:15 -0700 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2012-04-12 18:22:15 -0700 |
commit | c3c203ccd9ce9ee958cdf090b2cdf038554c038d (patch) | |
tree | d7ef8df4750757bc59c570d75267c1e2dc2068af | |
parent | b7dc02381f0afe3ee3a542d06a44a64b2cde3812 (diff) | |
parent | 7a743148c999436840ab2ab249047f5f34e896b0 (diff) |
Merge pull request #1087 from sipa/fix_1086
Fix #1086: add /testnet to passed datadir
-rw-r--r-- | src/util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp index 5579a09351..911388b37d 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -836,9 +836,9 @@ const boost::filesystem::path &GetDataDir(bool fNetSpecific) path = mapArgs["-datadir"]; } else { path = GetDefaultDataDir(); - if (fNetSpecific && GetBoolArg("-testnet", false)) - path /= "testnet"; } + if (fNetSpecific && GetBoolArg("-testnet", false)) + path /= "testnet"; fs::create_directory(path); |