Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bugfix in msg/io example
authorSamuel Lepetit <samuel.lepetit@inria.fr>
Wed, 13 Jun 2012 13:31:48 +0000 (15:31 +0200)
committerSamuel Lepetit <samuel.lepetit@inria.fr>
Wed, 13 Jun 2012 13:31:48 +0000 (15:31 +0200)
examples/msg/io/file.c

index 729d64e..ed8e91a 100644 (file)
@@ -34,7 +34,7 @@ int host(int argc, char *argv[])
 {
   msg_file_t file = NULL;
   s_msg_stat_t stat;
-  void *ptr;
+  void *ptr = NULL;
   char* mount = bprintf("/home");
   size_t read,write;