mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-22 23:08:53 +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
@ -229,7 +229,7 @@ namespace tools
|
||||
bool error;
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user