X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d435bdefd34324ed0b0c25d1b6eb6dd3b7344524..3736e0252d96679e19cfbe41f3c09833d3734386:/src/surf/sg_platf.c diff --git a/src/surf/sg_platf.c b/src/surf/sg_platf.c index 5276efc1dc..1db868e816 100644 --- a/src/surf/sg_platf.c +++ b/src/surf/sg_platf.c @@ -101,7 +101,7 @@ void sg_platf_new_AS_begin(const char *id, const char *routing) { unsigned int iterator; sg_platf_AS_begin_cb_t fun; - if (!surf_parse_models_setup_already_called && xbt_dynar_length(sg_platf_AS_begin_cb_list)) { + if (!surf_parse_models_setup_already_called && !xbt_dynar_is_empty(sg_platf_AS_begin_cb_list)) { /* Initialize the surf models. That must be done after we got all config, and before we need the models. * That is, after the last tag, if any, and before the first of cluster|peer|AS|trace|trace_connect *