X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a81562c6d1a1b73373123d9f24215776613e3746..20427e1463985c071ac551547d0906e282b43520:/src/surf/surfxml_parse.c diff --git a/src/surf/surfxml_parse.c b/src/surf/surfxml_parse.c index ffa11fc1a9..69f87cad8b 100644 --- a/src/surf/surfxml_parse.c +++ b/src/surf/surfxml_parse.c @@ -292,6 +292,9 @@ void STag_surfxml_host(void){ s_sg_platf_host_cbarg_t host; memset(&host,0,sizeof(host)); + xbt_assert(current_property_set == NULL, "Someone forgot to reset the property set to NULL in its closing tag (or XML malformed)"); + host.properties = current_property_set = xbt_dict_new(); + host.V_host_id = A_surfxml_host_id; host.V_host_power_peak = get_cpu_power(A_surfxml_host_power); host.V_host_power_scale = surf_parse_get_double( A_surfxml_host_availability); @@ -309,6 +312,7 @@ void STag_surfxml_host(void){ sg_platf_new_host(&host); } void ETag_surfxml_host(void){ + current_property_set = NULL; surfxml_call_cb_functions(ETag_surfxml_host_cb_list); }