Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Tasks must be initialized.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 18 May 2011 14:23:07 +0000 (16:23 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 18 May 2011 14:40:29 +0000 (16:40 +0200)
examples/msg/mc/bugged2.c

index 85af8dc..95c0854 100644 (file)
@@ -14,7 +14,8 @@ int client(int argc, char *argv[]);
 
 int server(int argc, char *argv[])
 {
-  m_task_t task1, task2;
+  m_task_t task1 = NULL;
+  m_task_t task2 = NULL;
   long val1, val2;
 
   MSG_task_receive(&task1, "mymailbox");