From 8246498d948b2fb165c0bfff0c6780a6c992410b Mon Sep 17 00:00:00 2001 From: sowle Date: Wed, 16 Oct 2019 12:35:35 +0300 Subject: [PATCH] attempt to fix core tests --- src/wallet/wallet2.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 1352b1f1..c92fb801 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -2170,6 +2170,8 @@ void wallet2::check_for_free_space_and_throw_if_it_lacks(const std::wstring& wal { fs::path wallet_file_path(wallet_filename); fs::path base_path = wallet_file_path.parent_path(); + if (base_path.empty()) + base_path = fs::path("."); WLT_THROW_IF_FALSE_WALLET_CMN_ERR_EX(fs::is_directory(base_path), "directory does not exist: " << base_path.string()); uint64_t min_free_size = exact_size_needed_if_known;