aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletutil.h
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2020-04-27 14:20:26 +0000
committerpracticalswift <practicalswift@users.noreply.github.com>2020-04-27 14:20:26 +0000
commit2a780980983f4b4aaae75817e57e7ed308713561 (patch)
tree928a81b237ca7ae285c4f2e4a3f3a3605e0d13c9 /src/wallet/walletutil.h
parentff046aeeba8d4f3ff210d37ba020616c12450ab3 (diff)
downloadbitcoin-2a780980983f4b4aaae75817e57e7ed308713561.tar.xz
wallet: Make sure no WalletDescriptor members are uninitialized after construction
Diffstat (limited to 'src/wallet/walletutil.h')
-rw-r--r--src/wallet/walletutil.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wallet/walletutil.h b/src/wallet/walletutil.h
index d7e07ed04c..599b1a9f5a 100644
--- a/src/wallet/walletutil.h
+++ b/src/wallet/walletutil.h
@@ -92,10 +92,10 @@ class WalletDescriptor
{
public:
std::shared_ptr<Descriptor> descriptor;
- uint64_t creation_time;
- int32_t range_start; // First item in range; start of range, inclusive, i.e. [range_start, range_end). This never changes.
- int32_t range_end; // Item after the last; end of range, exclusive, i.e. [range_start, range_end). This will increment with each TopUp()
- int32_t next_index; // Position of the next item to generate
+ uint64_t creation_time = 0;
+ int32_t range_start = 0; // First item in range; start of range, inclusive, i.e. [range_start, range_end). This never changes.
+ int32_t range_end = 0; // Item after the last; end of range, exclusive, i.e. [range_start, range_end). This will increment with each TopUp()
+ int32_t next_index = 0; // Position of the next item to generate
DescriptorCache cache;
ADD_SERIALIZE_METHODS;