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/db.h | |
| 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/db.h')
| -rw-r--r-- | src/wallet/db.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/db.h b/src/wallet/db.h index 7cccc6566..4f3ad0c42 100644 --- a/src/wallet/db.h +++ b/src/wallet/db.h @@ -95,13 +95,13 @@ class CWalletDBWrapper friend class CDB; public: /** Create dummy DB handle */ - CWalletDBWrapper() : nLastSeen(0), nLastFlushed(0), nLastWalletUpdate(0), env(nullptr) + CWalletDBWrapper() : nUpdateCounter(0), nLastSeen(0), nLastFlushed(0), nLastWalletUpdate(0), env(nullptr) { } /** Create DB handle to real database */ CWalletDBWrapper(CDBEnv *env_in, const std::string &strFile_in) : - nLastSeen(0), nLastFlushed(0), nLastWalletUpdate(0), env(env_in), strFile(strFile_in) + nUpdateCounter(0), nLastSeen(0), nLastFlushed(0), nLastWalletUpdate(0), env(env_in), strFile(strFile_in) { } |