Browse Source

Explicitly initialize members of fundamental types; avoids "jump depends on

uninitialized value"-warnings by valgrind.
miguelfreitas
Jö Fahlke 11 years ago
parent
commit
3f4cc4535d
  1. 2
      src/wallet.h

2
src/wallet.h

@ -98,6 +98,7 @@ public:
nMasterKeyMaxID = 0; nMasterKeyMaxID = 0;
pwalletdbEncryption = NULL; pwalletdbEncryption = NULL;
nOrderPosNext = 0; nOrderPosNext = 0;
nTimeFirstKey = 0;
} }
CWallet(std::string strWalletFileIn) CWallet(std::string strWalletFileIn)
{ {
@ -108,6 +109,7 @@ public:
nMasterKeyMaxID = 0; nMasterKeyMaxID = 0;
pwalletdbEncryption = NULL; pwalletdbEncryption = NULL;
nOrderPosNext = 0; nOrderPosNext = 0;
nTimeFirstKey = 0;
} }
std::map<uint256, CWalletTx> mapWallet; std::map<uint256, CWalletTx> mapWallet;

Loading…
Cancel
Save