aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/load.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-02-04 18:58:39 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-02-09 19:31:23 +0200
commitecd094e2b1e1eb7dba24dafef3640a9b6cc55f82 (patch)
tree0a90f379aec3bc69aee21375d2c724278fc18b85 /src/wallet/load.cpp
parent06fed4c21ec64cd224231d15cbbeb985b8fba5f2 (diff)
Use ArgsManager::GetPathArg() for "-walletdir" option
Diffstat (limited to 'src/wallet/load.cpp')
-rw-r--r--src/wallet/load.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/load.cpp b/src/wallet/load.cpp
index 6a74f2eb84..633d8c5450 100644
--- a/src/wallet/load.cpp
+++ b/src/wallet/load.cpp
@@ -28,7 +28,7 @@ bool VerifyWallets(WalletContext& context)
ArgsManager& args = *Assert(context.args);
if (args.IsArgSet("-walletdir")) {
- fs::path wallet_dir = fs::PathFromString(args.GetArg("-walletdir", ""));
+ const fs::path wallet_dir{args.GetPathArg("-walletdir")};
std::error_code error;
// The canonical path cleans the path, preventing >1 Berkeley environment instances for the same directory
// It also lets the fs::exists and fs::is_directory checks below pass on windows, since they return false