diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2017-07-13 23:25:56 +0100 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2017-07-13 23:25:56 +0100 |
commit | 4652791141f0a8a977b324147ccf1a2360b69ca4 (patch) | |
tree | 8c37c93c53baf1f7fa942028302d4d539c96739d /src/wallet/walletdb.cpp | |
parent | 7666250ffb4e8fc5c98556e2c8e121c72d6fe54c (diff) |
Fix uninitialized atomic variables
Diffstat (limited to 'src/wallet/walletdb.cpp')
-rw-r--r-- | src/wallet/walletdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/walletdb.cpp b/src/wallet/walletdb.cpp index deb09a4771..2a33dca240 100644 --- a/src/wallet/walletdb.cpp +++ b/src/wallet/walletdb.cpp @@ -747,7 +747,7 @@ DBErrors CWalletDB::ZapWalletTx(std::vector<CWalletTx>& vWtx) void MaybeCompactWalletDB() { - static std::atomic<bool> fOneThread; + static std::atomic<bool> fOneThread(false); if (fOneThread.exchange(true)) { return; } |