Explorar o código

I think this is the last one.

Adam Ierymenko %!s(int64=6) %!d(string=hai) anos
pai
achega
6475e1faf6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;