diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-04-13 03:11:14 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-04-13 03:11:14 +0200 |
commit | 7a743148c999436840ab2ab249047f5f34e896b0 (patch) | |
tree | 44c44d6f9db8d2291710e9add4f65e5994ca7913 | |
parent | 4ac24cf59e40f88089b3ba172a662e19e51bc4a3 (diff) |
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 91f1810ea6..c4464748fc 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); |