From 752fc0742e4f86e25f50ce6bf831afbeeb799df5 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 25 Mar 2019 12:52:19 -0700 Subject: More mem*() stuff... sigh... --- node/Capability.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node/Capability.hpp') 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 inline unsigned int deserialize(const Buffer &b,unsigned int startAt = 0) { - memset(this,0,sizeof(Capability)); + *this = Capability(); unsigned int p = startAt; -- cgit v1.2.3