aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2012-04-12 18:22:15 -0700
committerGavin Andresen <gavinandresen@gmail.com>2012-04-12 18:22:15 -0700
commitc3c203ccd9ce9ee958cdf090b2cdf038554c038d (patch)
treed7ef8df4750757bc59c570d75267c1e2dc2068af /src/util.cpp
parentb7dc02381f0afe3ee3a542d06a44a64b2cde3812 (diff)
parent7a743148c999436840ab2ab249047f5f34e896b0 (diff)
Merge pull request #1087 from sipa/fix_1086
Fix #1086: add /testnet to passed datadir
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp4
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);