X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2c1dd2b74b7edd9ab922d2fa6a8273bbf6c59677..da6b18121779fcbadaef944c4bafe2d9451fe5be:/examples/msg/actions-storage/actions-storage.c diff --git a/examples/msg/actions-storage/actions-storage.c b/examples/msg/actions-storage/actions-storage.c index a4e0becd77..815b7ce0d7 100644 --- a/examples/msg/actions-storage/actions-storage.c +++ b/examples/msg/actions-storage/actions-storage.c @@ -28,11 +28,10 @@ static void log_action(const char *const *action, double date) static msg_file_t get_file_descriptor(const char *file_name){ char full_name[1024]; - msg_file_t file = NULL; snprintf(full_name,1023, "%s:%s", MSG_process_get_name(MSG_process_self()), file_name); - file = (msg_file_t) xbt_dict_get_or_null(opened_files, full_name); + msg_file_t file = (msg_file_t)xbt_dict_get_or_null(opened_files, full_name); return file; }