Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Initialize variable.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 4 Feb 2013 13:24:27 +0000 (14:24 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 4 Feb 2013 15:27:13 +0000 (16:27 +0100)
Useless, but gcc whines if not initialized.

src/msg/msg_gos.c

index d765c85..e37e0d7 100644 (file)
@@ -263,7 +263,7 @@ MSG_task_receive_ext(msg_task_t * task, const char *alias, double timeout,
                      msg_host_t host)
 {
   xbt_ex_t e;
-  msg_error_t ret;
+  msg_error_t ret = MSG_OK;
   XBT_DEBUG
       ("MSG_task_receive_ext: Trying to receive a message on mailbox '%s'",
        alias);