diff options
| author | Adam Ierymenko <[email protected]> | 2019-03-25 12:41:59 -0700 |
|---|---|---|
| committer | Adam Ierymenko <[email protected]> | 2019-03-25 12:41:59 -0700 |
| commit | e1091611da39eefeeb9d707c0de5bf5124f81be5 (patch) | |
| tree | d6ff16300f06f7e560e34da9b03cab06f1c738ab /node/NetworkConfig.cpp | |
| parent | 678116b6d1f6ed5eb101893aca8fcfe58bafb99d (diff) | |
More mem*() stuff...
Diffstat (limited to 'node/NetworkConfig.cpp')
| -rw-r--r-- | node/NetworkConfig.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/NetworkConfig.cpp b/node/NetworkConfig.cpp index 828724f9..8be72008 100644 --- a/node/NetworkConfig.cpp +++ b/node/NetworkConfig.cpp @@ -203,7 +203,7 @@ bool NetworkConfig::fromDictionary(const Dictionary<ZT_NETWORKCONFIG_DICT_CAPACI Buffer<ZT_NETWORKCONFIG_DICT_CAPACITY> *tmp = new Buffer<ZT_NETWORKCONFIG_DICT_CAPACITY>(); try { - memset(this,0,sizeof(NetworkConfig)); + *this = NetworkConfig(); // Fields that are always present, new or old this->networkId = d.getUI(ZT_NETWORKCONFIG_DICT_KEY_NETWORK_ID,0); |
