Fix uninitialized atomic variables

This commit is contained in:
João Barbosa
2017-07-13 23:25:56 +01:00
parent 7666250ffb
commit 4652791141
3 changed files with 4 additions and 4 deletions

View File

@@ -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;
}