mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 00:37:43 +00:00
wallet2: initialize amount to 0 in tx_scan_info_t ctor
It seems the more prudent thing to do here. It will not catch attempts to use that value before it is initialized when using ASAN or valgrind, but in a case where it does, it will have smaller repercussions. So it seems appropriate in this particular case. Coverity 182498
This commit is contained in:
parent
4cbb476cd1
commit
cbe0122bf1
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ namespace tools
|
||||||
bool error;
|
bool error;
|
||||||
boost::optional<cryptonote::subaddress_receive_info> received;
|
boost::optional<cryptonote::subaddress_receive_info> received;
|
||||||
|
|
||||||
tx_scan_info_t(): money_transfered(0), error(true) {}
|
tx_scan_info_t(): amount(0), money_transfered(0), error(true) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct transfer_details
|
struct transfer_details
|
||||||
|
|
Loading…
Reference in a new issue