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

This commit is contained in:
practicalswift 2018-06-27 18:06:44 +02:00
parent f6eb85d17c
commit a23a7f60aa
1 changed files with 2 additions and 0 deletions

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;