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 12:47:47 -0500
commited50938af4987dc4caee0cdf6bfe363adb44bd5d (patch)
treed92962675931ddee19f26b541ebdfc36d3e438a3
parentMerge pull request #9050 (diff)
downloadmonero-ed50938af4987dc4caee0cdf6bfe363adb44bd5d.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 585d5fb49..c168c8571 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)
{