diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-16 10:14:27 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-16 11:58:48 +0000 |
commit | 32123789129372f1a4cb46a8aa289843e15a4b37 (patch) | |
tree | e5f7afd6afdfd41b495db0a501094b5e79550750 | |
parent | blockchain_db: initialize m_hardfork in ctor just in case (diff) | |
download | monero-32123789129372f1a4cb46a8aa289843e15a4b37.tar.xz |
wallet2: initialize some scalar fields in ctor where appropriate
Coverity 188336
-rw-r--r-- | src/wallet/wallet2.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index d774c54c0..fae972cf8 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -809,6 +809,7 @@ wallet_keys_unlocker::~wallet_keys_unlocker() wallet2::wallet2(network_type nettype, uint64_t kdf_rounds, bool unattended): m_multisig_rescan_info(NULL), m_multisig_rescan_k(NULL), + m_upper_transaction_weight_limit(0), m_run(true), m_callback(0), m_trusted_daemon(false), @@ -841,6 +842,9 @@ wallet2::wallet2(network_type nettype, uint64_t kdf_rounds, bool unattended): m_is_initialized(false), m_kdf_rounds(kdf_rounds), is_old_file_format(false), + m_watch_only(false), + m_multisig(false), + m_multisig_threshold(0), m_node_rpc_proxy(m_http_client, m_daemon_rpc_mutex), m_subaddress_lookahead_major(SUBADDRESS_LOOKAHEAD_MAJOR), m_subaddress_lookahead_minor(SUBADDRESS_LOOKAHEAD_MINOR), |