diff options
| author | João Barbosa <[email protected]> | 2017-07-13 23:25:56 +0100 |
|---|---|---|
| committer | João Barbosa <[email protected]> | 2017-07-13 23:25:56 +0100 |
| commit | 4652791141f0a8a977b324147ccf1a2360b69ca4 (patch) | |
| tree | 8c37c93c53baf1f7fa942028302d4d539c96739d /src/wallet/walletdb.cpp | |
| parent | Merge #10810: missing white space in function arg (diff) | |
| download | discoin-4652791141f0a8a977b324147ccf1a2360b69ca4.tar.xz discoin-4652791141f0a8a977b324147ccf1a2360b69ca4.zip | |
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 deb09a477..2a33dca24 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; } |