Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Stupid me. I still need to put the retrieved value into the variable
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 17 Aug 2009 11:24:40 +0000 (11:24 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 17 Aug 2009 11:24:40 +0000 (11:24 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6567 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/workstation.c

index 2827aaf..d445ecf 100644 (file)
@@ -46,7 +46,7 @@ void create_workstations(void)
   xbt_dict_foreach(surf_model_resource_set(surf_cpu_model), cursor, name, cpu) {
     int *id = NULL;
     if (used_routing && used_routing->host_id)
-      xbt_dict_get_or_null(used_routing->host_id,name);
+      id = xbt_dict_get_or_null(used_routing->host_id,name);
 
     workstation_new(name, cpu, id?*id:0);
   }