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);