0
0
Fork 0
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:
unknown 2021-05-13 21:03:02 +05:30
parent 0ab6ff5e37
commit d44a261acf

View file

@ -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;