diff options
| author | Pieter Wuille <[email protected]> | 2012-04-13 03:11:14 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-04-13 03:11:14 +0200 |
| commit | 7a743148c999436840ab2ab249047f5f34e896b0 (patch) | |
| tree | 44c44d6f9db8d2291710e9add4f65e5994ca7913 /src/util.cpp | |
| parent | Merge pull request #855 from sje397/ToggleHide (diff) | |
| download | discoin-7a743148c999436840ab2ab249047f5f34e896b0.tar.xz discoin-7a743148c999436840ab2ab249047f5f34e896b0.zip | |
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 91f1810ea..c4464748f 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); |