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

Github-Pull: #13546
Rebased-From: a23a7f60aa
This commit is contained in:
practicalswift 2018-06-27 18:06:44 +02:00 committed by MarcoFalke
parent 96f15e8bb3
commit 91fa15aaeb

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;