X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/70b610f78ad905e9176f87d40bedf5f51e7fd0b6..a91f50abdce08089b633bb5496b3f0c92a4b7c2e:/src/surf/xml/surfxml_sax_cb.cpp diff --git a/src/surf/xml/surfxml_sax_cb.cpp b/src/surf/xml/surfxml_sax_cb.cpp index a2e67203ca..f747566778 100644 --- a/src/surf/xml/surfxml_sax_cb.cpp +++ b/src/surf/xml/surfxml_sax_cb.cpp @@ -426,12 +426,15 @@ int ETag_surfxml_include_state() // Yeah, we were in an Restore state and proceed. fclose(surf_file_to_parse); + surf_file_to_parse = surf_file_to_parse_stack.back(); surf_file_to_parse_stack.pop_back(); surf_parse_pop_buffer_state(); + surf_input_buffer = surf_input_buffer_stack.back(); surf_input_buffer_stack.pop_back(); // Restore the filename for error messages free(surf_parsed_filename); + surf_parsed_filename = surf_parsed_filename_stack.back(); surf_parsed_filename_stack.pop_back(); return 1;