Fixed Coverity issues

This commit is contained in:
SChernykh 2022-02-22 00:38:08 +01:00
parent 9593311332
commit a73b4616a4
2 changed files with 7 additions and 3 deletions

View file

@ -91,10 +91,14 @@ public:
} }
} }
FORCEINLINE ~Worker() ~Worker()
{ {
try {
stop(); stop();
} }
catch (...) {
}
}
FORCEINLINE void stop() FORCEINLINE void stop()
{ {

View file

@ -79,7 +79,7 @@ static_assert(rev_alphabet.num_symbols == 58, "Check alphabet");
namespace p2pool { namespace p2pool {
Wallet::Wallet(const char* address) Wallet::Wallet(const char* address) : m_prefix(0), m_checksum(0), m_type(NetworkType::Invalid)
{ {
decode(address); decode(address);
} }