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

This commit is contained in:
practicalswift committed 2018-09-19 14:11:14 +02:00
1 parent f6eb85d17c
commit a23a7f60aa
1 file changed
+2
+2
View File
@@ -2844,6 +2844,8 @@ bool CWallet::CreateTransaction(const std::vector<CRecipient>& vecSend, CTransac
return false;
}
}
} else {
bnb_used = false;
}
const CAmount nChange = nValueIn - nValueToSelect;