@@ -404,15 +404,15 @@ class CConnman
404404 // whitelisted (as well as those connecting to whitelisted binds).
405405 std::vector<CSubNet> vWhitelistedRange;
406406
407- unsigned int nSendBufferMaxSize;
408- unsigned int nReceiveFloodSize;
407+ unsigned int nSendBufferMaxSize{ 0 } ;
408+ unsigned int nReceiveFloodSize{ 0 } ;
409409
410410 std::vector<ListenSocket> vhListenSocket;
411- std::atomic<bool > fNetworkActive ;
411+ std::atomic<bool > fNetworkActive { true } ;
412412 banmap_t setBanned GUARDED_BY (cs_setBanned);
413413 CCriticalSection cs_setBanned;
414- bool setBannedIsDirty GUARDED_BY (cs_setBanned);
415- bool fAddressesInitialized ;
414+ bool setBannedIsDirty GUARDED_BY (cs_setBanned){ false } ;
415+ bool fAddressesInitialized { false } ;
416416 CAddrMan addrman;
417417 std::deque<std::string> vOneShots GUARDED_BY (cs_vOneShots);
418418 CCriticalSection cs_vOneShots;
@@ -421,8 +421,8 @@ class CConnman
421421 std::vector<CNode*> vNodes;
422422 std::list<CNode*> vNodesDisconnected;
423423 mutable CCriticalSection cs_vNodes;
424- std::atomic<NodeId> nLastNodeId;
425- unsigned int nPrevNodeCount;
424+ std::atomic<NodeId> nLastNodeId{ 0 } ;
425+ unsigned int nPrevNodeCount{ 0 } ;
426426
427427 /* * Services this instance offers */
428428 ServiceFlags nLocalServices;
@@ -446,7 +446,7 @@ class CConnman
446446
447447 std::condition_variable condMsgProc;
448448 Mutex mutexMsgProc;
449- std::atomic<bool > flagInterruptMsgProc;
449+ std::atomic<bool > flagInterruptMsgProc{ false } ;
450450
451451 CThreadInterrupt interruptNet;
452452
0 commit comments