diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-06-27 18:06:44 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-09-19 14:11:14 +0200 |
commit | a23a7f60aa07de52d23ff1f2034fc43926ec3520 (patch) | |
tree | 389c0d08eaee6a5bc8987fc8d22ae9628b4543d6 /src | |
parent | f6eb85d17c6f8ed1fe043168e90d4830ab4745c3 (diff) |
wallet: Avoid potential use of unitialized value bnb_used in CWallet::CreateTransaction(...)
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/wallet.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index d0857bcb72..49743ee02a 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2844,6 +2844,8 @@ bool CWallet::CreateTransaction(const std::vector<CRecipient>& vecSend, CTransac return false; } } + } else { + bnb_used = false; } const CAmount nChange = nValueIn - nValueToSelect; |