X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/513baa2ee64b3db9b8697c61123715e6892afb4e..e7f673d15e75da1cf81d9d02186fbc936a21ffad:/src/surf/surfxml_parseplatf.c diff --git a/src/surf/surfxml_parseplatf.c b/src/surf/surfxml_parseplatf.c index 6b906efa4f..23865b4a37 100644 --- a/src/surf/surfxml_parseplatf.c +++ b/src/surf/surfxml_parseplatf.c @@ -181,7 +181,6 @@ void parse_platform_file(const char *file) { int parse_status; - surf_parse_reset_callbacks(); surf_parse_add_callback_config(); @@ -193,7 +192,8 @@ void parse_platform_file(const char *file) parse_status = surf_parse(); free_data(); surf_parse_close(); - xbt_assert(!parse_status, "Parse error in %s", file); + if (parse_status) + xbt_die("Parse error in %s", file); surf_config_models_create_elms(); }