Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove usage of xbt_dict_size().
[simgrid.git] / src / surf / surf_routing.c
index 6bac929..701eabf 100644 (file)
@@ -1075,7 +1075,7 @@ static void routing_parse_Srandom(void)
        random_id, random->min, random->max, random->mean, random->std,
        random->generator, random->seed, random_radical);
 
-  if (xbt_dict_size(random_value) == 0)
+  if (!random_value)
     random_value = xbt_dict_new();
 
   if (!strcmp(random_radical, "")) {