X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9f21f35eadfc5d1f43d3e7a4b591711fd7fb9616..ba747ecf0be34dbe90a464e78e67700a27642d74:/src/xbt/xbt_replay.cpp diff --git a/src/xbt/xbt_replay.cpp b/src/xbt/xbt_replay.cpp index 2fd02d3d45..d0b7197fb3 100644 --- a/src/xbt/xbt_replay.cpp +++ b/src/xbt/xbt_replay.cpp @@ -109,6 +109,9 @@ void xbt_replay_reader_free(xbt_replay_reader_t *reader) */ void xbt_replay_action_register(const char *action_name, action_fun function) { + if (xbt_action_funs == nullptr) // If the user registers a function before the start + _xbt_replay_action_init(); + char* lowername = str_tolower (action_name); xbt_dict_set(xbt_action_funs, lowername, (void*) function, nullptr); xbt_free(lowername);