This prevents segfaults (or errors when running qt in valgrind)
Conditional jump or move depends on uninitialised value(s)
WalletModel::checkBalanceChanged() (walletmodel.cpp:156)
This prevents segfaults (or errors when running qt in valgrind)
Conditional jump or move depends on uninitialised value(s)
WalletModel::checkBalanceChanged() (walletmodel.cpp:156)
utACK, but it would be better to initialize members inline the future to make these bugs more obvious:
CAmount cachedWatchOnlyBalance = 0;
utACK https://github.com/bitcoin/bitcoin/pull/12426/commits/fa27623edbe7530d667e05d513066d1bd5339f41, good catch.
utACK, but it would be better to initialize members inline the future to make these bugs more obvious:
Indeed, if that's consistently done it's much easier to see missing ones. But would have to move all of the initializers at the same time then.