diff options
| author | practicalswift <[email protected]> | 2018-06-27 18:06:44 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2018-09-19 14:11:14 +0200 |
| commit | a23a7f60aa07de52d23ff1f2034fc43926ec3520 (patch) | |
| tree | 389c0d08eaee6a5bc8987fc8d22ae9628b4543d6 /src/wallet/wallet.cpp | |
| parent | Merge #13707: tests: Add usage note to check-rpc-mappings.py (diff) | |
| download | discoin-a23a7f60aa07de52d23ff1f2034fc43926ec3520.tar.xz discoin-a23a7f60aa07de52d23ff1f2034fc43926ec3520.zip | |
wallet: Avoid potential use of unitialized value bnb_used in CWallet::CreateTransaction(...)
Diffstat (limited to 'src/wallet/wallet.cpp')
| -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 d0857bcb7..49743ee02 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; |