summaryrefslogtreecommitdiff
path: root/node/Revocation.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2019-03-25 11:45:32 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2019-03-25 11:45:32 -0700
commitb56753ea9f86cd4c4ea749cdd6647a94b7ff0063 (patch)
tree48310fc8fc9c5e6894e1b7146935589274ef76a6 /node/Revocation.hpp
parent97046b265c489b7603143bd94bfc76ba6d7aef04 (diff)
downloadinfinitytier-b56753ea9f86cd4c4ea749cdd6647a94b7ff0063.tar.gz
infinitytier-b56753ea9f86cd4c4ea749cdd6647a94b7ff0063.zip
Get rid of some mem* calls that are bad C++ form (but worked fine) and cause warnings.
Diffstat (limited to 'node/Revocation.hpp')
-rw-r--r--node/Revocation.hpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/node/Revocation.hpp b/node/Revocation.hpp
index 0a43981c..46a5d4f8 100644
--- a/node/Revocation.hpp
+++ b/node/Revocation.hpp
@@ -58,9 +58,16 @@ class Revocation : public Credential
public:
static inline Credential::Type credentialType() { return Credential::CREDENTIAL_TYPE_REVOCATION; }
- Revocation()
+ Revocation() :
+ _id(0),
+ _credentialId(0),
+ _networkId(0),
+ _threshold(0),
+ _flags(0),
+ _target(),
+ _signedBy(),
+ _type(Credential::CREDENTIAL_TYPE_NULL)
{
- memset(this,0,sizeof(Revocation));
}
/**