Fix variable shadowing bug.

This commit is contained in:
Adam Ierymenko 2019-09-03 12:51:32 -07:00
parent 50709cbd21
commit 0e7df129d8
No known key found for this signature in database
GPG Key ID: C8877CF2D7A5D7F3

View File

@ -142,7 +142,7 @@ struct RendezvousKey
*/
struct RootPeer
{
ZT_ALWAYS_INLINE RootPeer() : lastSend(0),lastReceive(0),lastSync(0),lastEcho(0),lastHello(0),vMajor(-1),vMinor(-1),vRev(-1) {}
ZT_ALWAYS_INLINE RootPeer() : lastSend(0),lastReceive(0),lastSync(0),lastEcho(0),lastHello(0),vMajor(-1),vMinor(-1),vRev(-1),sibling(false) {}
ZT_ALWAYS_INLINE ~RootPeer() { Utils::burn(key,sizeof(key)); }
Identity id; // Identity
@ -747,7 +747,7 @@ int main(int argc,char **argv)
try {
auto sibs = config["siblings"];
if (sibs.is_array()) {
for(long i=0;i<(long)siblings.size();++i) {
for(long i=0;i<(long)sibs.size();++i) {
auto sib = sibs[i];
if (sib.is_object()) {
std::string idStr = sib["id"];