aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee *!* Clagett <code@leeclagett.com>2024-02-06 12:47:47 -0500
committerLee *!* Clagett <code@leeclagett.com>2024-02-06 13:23:10 -0500
commit052df1b28ca89b912258ac573516dad5325344e8 (patch)
treede306f6b2db7357a2ad59588d567593d69d10d88
parentMerge pull request #9080 (diff)
downloadmonero-052df1b28ca89b912258ac573516dad5325344e8.tar.xz
Zero initialize rctSigBase elements
-rw-r--r--src/ringct/rctTypes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ringct/rctTypes.h b/src/ringct/rctTypes.h
index 32cd8dc6f..dc3d9768b 100644
--- a/src/ringct/rctTypes.h
+++ b/src/ringct/rctTypes.h
@@ -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)
{