From a91f50abdce08089b633bb5496b3f0c92a4b7c2e Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Thu, 2 Mar 2017 15:03:23 +0100 Subject: [PATCH] also get the popped value (to see if it solves issues) --- src/surf/xml/surfxml_sax_cb.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.20.1