X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6eeb2558e12b6dbbb658c83eb26ee1b9c37d2e97..1181daf8b93cd68576f32b6f8cb3c7cb28c7932e:/examples/msg/chord/chord.c 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;