From: coldpeace Date: Fri, 10 Dec 2010 17:19:19 +0000 (+0000) Subject: fix warning msg... X-Git-Tag: v3.6_beta2~783 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1181daf8b93cd68576f32b6f8cb3c7cb28c7932e?hp=6eeb2558e12b6dbbb658c83eb26ee1b9c37d2e97 fix warning msg... git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9140 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- 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;