wallet: Avoid potential use of unitialized value bnb_used in CWallet::CreateTransaction(...)

Github-Pull: #13546
Rebased-From: a23a7f60aa
This commit is contained in:
practicalswift authored and MarcoFalke committed 2018-11-28 15:35:05 -05:00
1 parent 96f15e8bb3
commit 91fa15aaeb
1 file changed
+2
+2
View File
@@ -2846,6 +2846,8 @@ bool CWallet::CreateTransaction(const std::vector<CRecipient>& vecSend, CTransac
return false;
}
}
} else {
bnb_used = false;
}
const CAmount nChange = nValueIn - nValueToSelect;