diff options
| author | Gavin Andresen <[email protected]> | 2012-04-12 18:22:15 -0700 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2012-04-12 18:22:15 -0700 |
| commit | c3c203ccd9ce9ee958cdf090b2cdf038554c038d (patch) | |
| tree | d7ef8df4750757bc59c570d75267c1e2dc2068af /src/util.cpp | |
| parent | Merge pull request #1041 from gavinandresen/listtransactionsfix (diff) | |
| parent | Fix #1086: add /testnet to passed datadir (diff) | |
| download | discoin-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.cpp | 4 |
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); |