Skip to content
Permalink
Browse files

wallet2: don't try to lock an empty filename

  • Loading branch information...
moneromooo-monero committed Nov 5, 2019
1 parent a48ef0a commit 4b38400336c2bd5b0d011da980ca9e46862a50b9
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/wallet/wallet2.cpp
@@ -7555,6 +7555,8 @@ bool wallet2::is_output_blackballed(const std::pair<uint64_t, uint64_t> &output)

bool wallet2::lock_keys_file()
{
if (m_wallet_file.empty())
return true;
if (m_keys_file_locker)
{
MDEBUG(m_keys_file << " is already locked.");
@@ -7566,6 +7568,8 @@ bool wallet2::lock_keys_file()

bool wallet2::unlock_keys_file()
{
if (m_wallet_file.empty())
return true;
if (!m_keys_file_locker)
{
MDEBUG(m_keys_file << " is already unlocked.");
@@ -7577,6 +7581,8 @@ bool wallet2::unlock_keys_file()

bool wallet2::is_keys_file_locked() const
{
if (m_wallet_file.empty())
return false;
return m_keys_file_locker->locked();
}

0 comments on commit 4b38400

Please sign in to comment.
You can’t perform that action at this time.