aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletdb.cpp
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2017-07-13 23:25:56 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2017-07-13 23:25:56 +0100
commit4652791141f0a8a977b324147ccf1a2360b69ca4 (patch)
tree8c37c93c53baf1f7fa942028302d4d539c96739d /src/wallet/walletdb.cpp
parent7666250ffb4e8fc5c98556e2c8e121c72d6fe54c (diff)
Fix uninitialized atomic variables
Diffstat (limited to 'src/wallet/walletdb.cpp')
-rw-r--r--src/wallet/walletdb.cpp2
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;
}