summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
Diffstat (limited to 'node')
-rw-r--r--node/Revocation.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Revocation.hpp b/node/Revocation.hpp
index 46a5d4f8..17eefcb8 100644
--- a/node/Revocation.hpp
+++ b/node/Revocation.hpp
@@ -155,7 +155,7 @@ public:
template<unsigned int C>
inline unsigned int deserialize(const Buffer<C> &b,unsigned int startAt = 0)
{
- memset(this,0,sizeof(Revocation));
+ *this = Revocation();
unsigned int p = startAt;