X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f783ed4680c6862a1b7543237e89d1221334bae0..488dd54cbc91fad4cb04c9d0e92609a107ad1568:/src/surf/fair_bottleneck.c diff --git a/src/surf/fair_bottleneck.c b/src/surf/fair_bottleneck.c index ce44b58fb0..aa9c4fa634 100644 --- a/src/surf/fair_bottleneck.c +++ b/src/surf/fair_bottleneck.c @@ -172,9 +172,7 @@ void bottleneck_solve(lmm_system_t sys) } } while (xbt_swag_size(var_list)); - xbt_swag_foreach_safe(cnst, cnst_next, cnst_list) { - xbt_swag_remove(cnst, cnst_list); - } + xbt_swag_reset(cnst_list); sys->modified = 0; if (XBT_LOG_ISENABLED(surf_maxmin, xbt_log_priority_debug)) { XBT_DEBUG("Fair bottleneck done");