Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Write a changelog entry for Henry
[simgrid.git] / src / msg / deployment.c
index 70e47f1..8668832 100644 (file)
@@ -8,7 +8,7 @@
 #include "private.h"
 #include "xbt/sysdep.h"
 #include "xbt/log.h"
-#include "surf/surf_parse.h"
+#include "surf/surf_parse_private.h"
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(deployment, msg,
                                "Logging specific to MSG (environment)");
 
@@ -123,8 +123,8 @@ m_process_code_t MSG_get_registered_function(const char *name)
   m_process_code_t code = NULL;
 
   xbt_assert0(msg_global,"MSG_global_init has to be called before MSG_get_registered_function.");
-  code = xbt_dict_get(msg_global->registered_functions,name);
+
+  code = xbt_dict_get_or_null(msg_global->registered_functions,name);
 
   return code;
 }