Skip to content

Commit

Permalink
wallet: Avoid potential use of unitialized value bnb_used in CWallet:…
Browse files Browse the repository at this point in the history
…:CreateTransaction(...)
  • Loading branch information
practicalswift committed Sep 19, 2018
1 parent f6eb85d commit a23a7f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2844,6 +2844,8 @@ bool CWallet::CreateTransaction(const std::vector<CRecipient>& vecSend, CTransac
return false;
}
}
} else {
bnb_used = false;
}

const CAmount nChange = nValueIn - nValueToSelect;
Expand Down

0 comments on commit a23a7f6

Please sign in to comment.