aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 5579a09351..911388b37d 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);