diff options
| author | Nsable-sh <nsable-sh@noreply.git.bitflash.network> | 2026-08-14 08:24:17 -0300 |
|---|---|---|
| committer | Nsable-sh <nsable-sh@noreply.git.bitflash.network> | 2026-08-14 08:24:17 -0300 |
| commit | b3088010726c9ab1ceeaa84357e91a8f81763fe2 (patch) | |
| tree | 581d3bd83a2d2027fc8a2fc9e88b02e3ce3f93e0 /src/walletcmd.cpp | |
| parent | 540ed06974ff6b05364d4922895288744f076f6b (diff) | |
wallet: initialize storage audit counts explicitly
Diffstat (limited to 'src/walletcmd.cpp')
| -rw-r--r-- | src/walletcmd.cpp | 49 |
1 files changed, 22 insertions, 27 deletions
diff --git a/src/walletcmd.cpp b/src/walletcmd.cpp index 265febe..6fc8c38 100644 --- a/src/walletcmd.cpp +++ b/src/walletcmd.cpp | |||
| @@ -476,33 +476,28 @@ int CmdRecoveryAudit() | |||
| 476 | 476 | ||
| 477 | struct WalletStorageAuditCounts | 477 | struct WalletStorageAuditCounts |
| 478 | { | 478 | { |
| 479 | unsigned int nTotal; | 479 | unsigned int nTotal = 0; |
| 480 | unsigned int nMalformed; | 480 | unsigned int nMalformed = 0; |
| 481 | unsigned int nUnknown; | 481 | unsigned int nUnknown = 0; |
| 482 | unsigned int nVersion; | 482 | unsigned int nVersion = 0; |
| 483 | unsigned int nNames; | 483 | unsigned int nNames = 0; |
| 484 | unsigned int nTransactions; | 484 | unsigned int nTransactions = 0; |
| 485 | unsigned int nPlainKeys; | 485 | unsigned int nPlainKeys = 0; |
| 486 | unsigned int nEncryptedKeys; | 486 | unsigned int nEncryptedKeys = 0; |
| 487 | unsigned int nMasterKeys; | 487 | unsigned int nMasterKeys = 0; |
| 488 | unsigned int nDefaultKey; | 488 | unsigned int nDefaultKey = 0; |
| 489 | unsigned int nPlainHDMaster; | 489 | unsigned int nPlainHDMaster = 0; |
| 490 | unsigned int nPlainHDChainCode; | 490 | unsigned int nPlainHDChainCode = 0; |
| 491 | unsigned int nCryptedHDMaster; | 491 | unsigned int nCryptedHDMaster = 0; |
| 492 | unsigned int nCryptedHDChainCode; | 492 | unsigned int nCryptedHDChainCode = 0; |
| 493 | unsigned int nWalletMinVersion; | 493 | unsigned int nWalletMinVersion = 0; |
| 494 | unsigned int nPool; | 494 | unsigned int nPool = 0; |
| 495 | unsigned int nSettings; | 495 | unsigned int nSettings = 0; |
| 496 | unsigned int nHDNext; | 496 | unsigned int nHDNext = 0; |
| 497 | unsigned int nHDSchema; | 497 | unsigned int nHDSchema = 0; |
| 498 | unsigned int nHDCoinType; | 498 | unsigned int nHDCoinType = 0; |
| 499 | unsigned int nHDReceiveNext; | 499 | unsigned int nHDReceiveNext = 0; |
| 500 | unsigned int nHDChangeNext; | 500 | unsigned int nHDChangeNext = 0; |
| 501 | |||
| 502 | WalletStorageAuditCounts() | ||
| 503 | { | ||
| 504 | memset(this, 0, sizeof(*this)); | ||
| 505 | } | ||
| 506 | }; | 501 | }; |
| 507 | 502 | ||
| 508 | static std::string HDSeedStorageState(unsigned int nMaster, unsigned int nChain) | 503 | static std::string HDSeedStorageState(unsigned int nMaster, unsigned int nChain) |