소스 검색

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;