From 91fa15aaebdf99fb0d1e2d811f765a5dd3fc3a93 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Wed, 27 Jun 2018 18:06:44 +0200 Subject: wallet: Avoid potential use of unitialized value bnb_used in CWallet::CreateTransaction(...) Github-Pull: #13546 Rebased-From: a23a7f60aa07de52d23ff1f2034fc43926ec3520 --- src/wallet/wallet.cpp | 2 ++ 1 file changed, 2 insertions(+) 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& vecSend, CTransac return false; } } + } else { + bnb_used = false; } const CAmount nChange = nValueIn - nValueToSelect; -- cgit v1.2.3