mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05: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
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
std::vector<fs::path> ListDatabases(const fs::path& wallet_dir)
|
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;
|
std::vector<fs::path> paths;
|
||||||
boost::system::error_code ec;
|
boost::system::error_code ec;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue