diff options
Diffstat (limited to 'node/Capability.hpp')
-rw-r--r-- | node/Capability.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Capability.hpp b/node/Capability.hpp index 293193e0..25787c76 100644 --- a/node/Capability.hpp +++ b/node/Capability.hpp @@ -426,7 +426,7 @@ public: template<unsigned int C> inline unsigned int deserialize(const Buffer<C> &b,unsigned int startAt = 0) { - memset(this,0,sizeof(Capability)); + *this = Capability(); unsigned int p = startAt; |