From: Arnaud Giersch Date: Thu, 3 Apr 2014 08:18:22 +0000 (+0200) Subject: Older gcc warns that variable may be uninitialized. Initialize it. X-Git-Tag: v3_11~169 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/39f04a33f18094667adcb46abf9dd5c1f40181f9 Older gcc warns that variable may be uninitialized. Initialize it. --- diff --git a/src/msg/msg_io.c b/src/msg/msg_io.c index 3b77073b5d..3f7e1f89d2 100644 --- a/src/msg/msg_io.c +++ b/src/msg/msg_io.c @@ -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;