瀏覽代碼

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>
 	template<unsigned int C>
 	inline unsigned int deserialize(const Buffer<C> &b,unsigned int startAt = 0)
 	inline unsigned int deserialize(const Buffer<C> &b,unsigned int startAt = 0)
 	{
 	{
-		memset(this,0,sizeof(Revocation));
+		*this = Revocation();
 
 
 		unsigned int p = startAt;
 		unsigned int p = startAt;