aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-06-27 18:06:44 +0200
committerMarcoFalke <falke.marco@gmail.com>2018-11-28 15:35:05 -0500
commit91fa15aaebdf99fb0d1e2d811f765a5dd3fc3a93 (patch)
tree1a4279e1ca10e32f4c4f4a16ab04f82531c9ed30
parent96f15e8bb3ca92d61030074c5499d07d8f89a92c (diff)
downloadbitcoin-91fa15aaebdf99fb0d1e2d811f765a5dd3fc3a93.tar.xz
wallet: Avoid potential use of unitialized value bnb_used in CWallet::CreateTransaction(...)
Github-Pull: #13546 Rebased-From: a23a7f60aa07de52d23ff1f2034fc43926ec3520
-rw-r--r--src/wallet/wallet.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index 5a7fdf9a85..1a14d7af07 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -2846,6 +2846,8 @@ bool CWallet::CreateTransaction(const std::vector<CRecipient>& vecSend, CTransac
return false;
}
}
+ } else {
+ bnb_used = false;
}
const CAmount nChange = nValueIn - nValueToSelect;