Skip to content

Commit

Permalink
Zero initialize rctSigBase elements
Browse files Browse the repository at this point in the history
  • Loading branch information
vtnerd committed Feb 6, 2024
1 parent 8eab181 commit 052df1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ringct/rctTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ namespace rct {
ctkeyV outPk;
xmr_amount txnFee; // contains b

rctSigBase() :
type(RCTTypeNull), message{}, mixRing{}, pseudoOuts{}, ecdhInfo{}, outPk{}, txnFee(0)
{}

template<bool W, template <bool> class Archive>
bool serialize_rctsig_base(Archive<W> &ar, size_t inputs, size_t outputs)
{
Expand Down

0 comments on commit 052df1b

Please sign in to comment.