Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fixed bug in route:multi generation; appeared after the KCC.. model was eliminated
[simgrid.git] / src / surf / workstation_ptask_L07.c
index 2d553ae..d708a9e 100644 (file)
@@ -875,7 +875,6 @@ static void parse_route_set_route(void)
   char* name;
   if (src_id != -1 && dst_id != -1) {
      name = bprintf("%x#%x",src_id, dst_id);
-
      manage_route(route_table, name, route_action, 0);
      free(name);
   }
@@ -911,6 +910,7 @@ static void add_route(void)
     char *key,*data, *end;
     const char *sep = "#";
     xbt_dynar_t links, keys;
+       char* link = NULL;
 
     if (routing_table == NULL) create_routing_table();
 
@@ -925,7 +925,7 @@ static void add_route(void)
        link_list_capacity = xbt_dynar_length(links);
        link_list = xbt_new(link_L07_t, link_list_capacity);
 
-       char* link = NULL;
+       
        xbt_dynar_foreach (links, cpt, link) {
          TRY {
            link_list[nb_link++] = xbt_dict_get(link_set, link);