X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b204ff04eae43a5f5a8825141ae0647b92507bc8..c6bbeb1829c36ff45b43ab25f9d8d3f53f554d98:/examples/s4u/dht-kademlia/node.hpp diff --git a/examples/s4u/dht-kademlia/node.hpp b/examples/s4u/dht-kademlia/node.hpp index 0aa8d80310..400461525e 100644 --- a/examples/s4u/dht-kademlia/node.hpp +++ b/examples/s4u/dht-kademlia/node.hpp @@ -17,11 +17,11 @@ class Node { unsigned int id_; // node id - 160 bits RoutingTable table; // node routing table public: - simgrid::s4u::CommPtr receive_comm; + simgrid::s4u::CommPtr receive_comm = nullptr; void* received_msg = nullptr; unsigned int find_node_success = 0; // Number of find_node which have succeeded. unsigned int find_node_failed = 0; // Number of find_node which have failed. - explicit Node(unsigned int node_id) : id_(node_id), table(node_id), receive_comm(nullptr) {} + explicit Node(unsigned int node_id) : id_(node_id), table(node_id) {} Node(const Node&) = delete; Node& operator=(const Node&) = delete; unsigned int getId() { return id_; }