From: mquinson Date: Mon, 17 Aug 2009 11:24:40 +0000 (+0000) Subject: Stupid me. I still need to put the retrieved value into the variable X-Git-Tag: SVN~1101 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d3b7692da016e75a76aa4458e533a9e532e0e7a4 Stupid me. I still need to put the retrieved value into the variable git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6567 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/surf/workstation.c b/src/surf/workstation.c index 2827aaf122..d445ecfc0b 100644 --- a/src/surf/workstation.c +++ b/src/surf/workstation.c @@ -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); }