فهرست منبع

I think this is the last one.

Adam Ierymenko 6 سال پیش
والد
کامیت
6475e1faf6
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      node/Revocation.hpp

+ 1 - 1
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;