summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2019-03-25 12:00:54 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2019-03-25 12:00:54 -0700
commit0a9e2227e85be3c3ce45de98b50aae4b84ee5c06 (patch)
treefaebaae14346fe4061570dd5fe817986108aa1a8
parent2600b1f144d8d2d2f4f4c0c1fe71db9d0839c084 (diff)
downloadinfinitytier-0a9e2227e85be3c3ce45de98b50aae4b84ee5c06.tar.gz
infinitytier-0a9e2227e85be3c3ce45de98b50aae4b84ee5c06.zip
... and more
-rw-r--r--node/CertificateOfOwnership.hpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/node/CertificateOfOwnership.hpp b/node/CertificateOfOwnership.hpp
index bd4eefe1..5adee6c0 100644
--- a/node/CertificateOfOwnership.hpp
+++ b/node/CertificateOfOwnership.hpp
@@ -67,9 +67,15 @@ public:
THING_IPV6_ADDRESS = 3
};
- CertificateOfOwnership()
+ CertificateOfOwnership() :
+ _networkId(0),
+ _ts(0),
+ _flags(0),
+ _id(0),
+ _thingCount(0)
{
- memset(this,0,sizeof(CertificateOfOwnership));
+ memset(_thingTypes,0,sizeof(_thingTypes));
+ memset(_thingValues,0,sizeof(_thingValues));
}
CertificateOfOwnership(const uint64_t nwid,const int64_t ts,const Address &issuedTo,const uint32_t id) :