Skip to content

Commit 06fed4c

Browse files
committed
Use ArgsManager::GetPathArg() for "-blocksdir" option
1 parent 15b632b commit 06fed4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/system.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ const fs::path& ArgsManager::GetBlocksDirPath() const
416416
if (!path.empty()) return path;
417417

418418
if (IsArgSet("-blocksdir")) {
419-
path = fs::absolute(fs::PathFromString(GetArg("-blocksdir", "")));
419+
path = fs::absolute(GetPathArg("-blocksdir"));
420420
if (!fs::is_directory(path)) {
421421
path = "";
422422
return path;

0 commit comments

Comments
 (0)