mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-19 05:12:03 +02:00
Fix issues when walletdir
is root directory
+ Remove one character less from wallet path if root directory
This commit is contained in:
parent
0ab6ff5e37
commit
d44a261acf
@ -12,7 +12,7 @@
|
||||
|
||||
std::vector<fs::path> ListDatabases(const fs::path& wallet_dir)
|
||||
{
|
||||
const size_t offset = wallet_dir.string().size() + 1;
|
||||
const size_t offset = wallet_dir.string().size() + (wallet_dir == wallet_dir.root_name() ? 0 : 1);
|
||||
std::vector<fs::path> paths;
|
||||
boost::system::error_code ec;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user