aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2012-04-12 18:22:15 -0700
committerGavin Andresen <[email protected]>2012-04-12 18:22:15 -0700
commitc3c203ccd9ce9ee958cdf090b2cdf038554c038d (patch)
treed7ef8df4750757bc59c570d75267c1e2dc2068af /src/util.cpp
parentMerge pull request #1041 from gavinandresen/listtransactionsfix (diff)
parentFix #1086: add /testnet to passed datadir (diff)
downloaddiscoin-c3c203ccd9ce9ee958cdf090b2cdf038554c038d.tar.xz
discoin-c3c203ccd9ce9ee958cdf090b2cdf038554c038d.zip
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 5579a0935..911388b37 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);