From: Frederic Suter Date: Thu, 2 Mar 2017 14:03:23 +0000 (+0100) Subject: also get the popped value (to see if it solves issues) X-Git-Tag: v3_15~247 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a91f50abdce08089b633bb5496b3f0c92a4b7c2e also get the popped value (to see if it solves issues) --- 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;