From 1181daf8b93cd68576f32b6f8cb3c7cb28c7932e Mon Sep 17 00:00:00 2001 From: coldpeace Date: Fri, 10 Dec 2010 17:19:19 +0000 Subject: [PATCH] fix warning msg... git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9140 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- examples/msg/chord/chord.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/msg/chord/chord.c b/examples/msg/chord/chord.c index cad10c1e56..8718f6687f 100644 --- a/examples/msg/chord/chord.c +++ b/examples/msg/chord/chord.c @@ -304,6 +304,7 @@ int node(int argc, char *argv[]) for (i = 0; i < NB_BITS - 1; i++) { xbt_free(node.fingers[i].mailbox); } + return 1; } /** @@ -361,7 +362,7 @@ static void quit_notify(node_t node, int to) req_data->pred_id = node->pred_id; req_data->issuer_host_name = MSG_host_get_name(MSG_host_self()); const char *task_name = NULL; - const char* to_mailbox; + const char* to_mailbox = NULL; if( to == 1) // notify my successor { to_mailbox = node->fingers[0].mailbox; -- 2.20.1