Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Do not make an expensive call to get_route if it is not needed.
[simgrid.git] / src / simix / smx_environment.c
index 600d6da..c342abc 100644 (file)
@@ -39,7 +39,7 @@ void SIMIX_create_environment(const char *file)
 
   double start, end;
 
-  platform_filename = bprintf("%s",file);
+  platform_filename = xbt_strdup(file);
 
   // Reset callbacks
   surf_parse_reset_callbacks();