Procházet zdrojové kódy

I think this is the last one.

Adam Ierymenko před 6 roky
rodič
revize
6475e1faf6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;