summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2019-03-25 12:52:19 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2019-03-25 12:52:19 -0700
commit752fc0742e4f86e25f50ce6bf831afbeeb799df5 (patch)
tree7ca31c9e9680063b4ed3d288d12a0425d110e983 /node
parente1091611da39eefeeb9d707c0de5bf5124f81be5 (diff)
downloadinfinitytier-752fc0742e4f86e25f50ce6bf831afbeeb799df5.tar.gz
infinitytier-752fc0742e4f86e25f50ce6bf831afbeeb799df5.zip
More mem*() stuff... sigh...
Diffstat (limited to 'node')
-rw-r--r--node/Capability.hpp2
-rw-r--r--node/Tag.hpp2
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;