diff options
Diffstat (limited to 'node')
-rw-r--r-- | node/Capability.hpp | 2 | ||||
-rw-r--r-- | node/Tag.hpp | 2 |
2 files changed, 2 insertions, 2 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; diff --git a/node/Tag.hpp b/node/Tag.hpp index 2f3bf66e..9d6ecc3b 100644 --- a/node/Tag.hpp +++ b/node/Tag.hpp @@ -152,7 +152,7 @@ public: { unsigned int p = startAt; - memset(this,0,sizeof(Tag)); + *this = Tag(); _networkId = b.template at<uint64_t>(p); p += 8; _ts = b.template at<uint64_t>(p); p += 8; |