diff --git a/node/Revocation.hpp b/node/Revocation.hpp index 46a5d4f8a..17eefcb85 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;