From d3b7692da016e75a76aa4458e533a9e532e0e7a4 Mon Sep 17 00:00:00 2001 From: mquinson Date: Mon, 17 Aug 2009 11:24:40 +0000 Subject: [PATCH] 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 --- src/surf/workstation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.20.1