From a73b4616a40b55676f6099a93f96aa2b89d5709e Mon Sep 17 00:00:00 2001 From: SChernykh Date: Tue, 22 Feb 2022 00:38:08 +0100 Subject: [PATCH] Fixed Coverity issues --- src/log.cpp | 8 ++++++-- src/wallet.cpp | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/log.cpp b/src/log.cpp index bae36a0..da204a3 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -91,9 +91,13 @@ public: } } - FORCEINLINE ~Worker() + ~Worker() { - stop(); + try { + stop(); + } + catch (...) { + } } FORCEINLINE void stop() diff --git a/src/wallet.cpp b/src/wallet.cpp index e0a59f5..1b95bbb 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -79,7 +79,7 @@ static_assert(rev_alphabet.num_symbols == 58, "Check alphabet"); namespace p2pool { -Wallet::Wallet(const char* address) +Wallet::Wallet(const char* address) : m_prefix(0), m_checksum(0), m_type(NetworkType::Invalid) { decode(address); }