Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Older gcc warns that variable may be uninitialized. Initialize it.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 3 Apr 2014 08:18:22 +0000 (10:18 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 4 Apr 2014 08:27:05 +0000 (10:27 +0200)
src/msg/msg_io.c

index 3b77073..3f7e1f8 100644 (file)
@@ -322,7 +322,7 @@ msg_error_t MSG_file_rcopy (msg_file_t file, msg_host_t host, const char* fullpa
   /* Find the real host destination where the file will be physically stored */
   xbt_dict_cursor_t cursor = NULL;
   char *mount_name, *storage_name, *file_mount_name, *host_name_dest;
-  msg_storage_t storage_dest;
+  msg_storage_t storage_dest = NULL;
   msg_host_t host_dest;
   size_t longest_prefix_length = 0;