From 18aa533da7e4302fe69e93f895ba360032ff0b49 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 12 Mar 2019 18:39:10 +0100 Subject: [PATCH 1/1] Ensure field is initialized. --- examples/s4u/dht-chord/s4u-dht-chord.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/s4u/dht-chord/s4u-dht-chord.hpp b/examples/s4u/dht-chord/s4u-dht-chord.hpp index c071fe25d4..ba0ac1fcd0 100644 --- a/examples/s4u/dht-chord/s4u-dht-chord.hpp +++ b/examples/s4u/dht-chord/s4u-dht-chord.hpp @@ -61,7 +61,7 @@ public: int request_id = -1; // id (used by some types of messages) int request_finger = 1; // finger parameter (used by some types of messages) int answer_id = -1; // answer (used by some types of messages) - simgrid::s4u::Mailbox* answer_to; // mailbox to send an answer to (if any) + simgrid::s4u::Mailbox* answer_to = nullptr; // mailbox to send an answer to (if any) explicit ChordMessage(e_message_type_t type) : type(type), issuer_host_name(simgrid::s4u::this_actor::get_host()->get_name()) -- 2.20.1