Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
back() doesn't help so save it. set a link to nullptr
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 2 Mar 2017 14:36:19 +0000 (15:36 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 2 Mar 2017 14:36:19 +0000 (15:36 +0100)
src/surf/xml/surfxml_sax_cb.cpp

index f747566..1fd0a66 100644 (file)
@@ -426,15 +426,12 @@ int ETag_surfxml_include_state()
 
   // Yeah, we were in an <include> 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;
@@ -692,7 +689,7 @@ void ETag_surfxml_link(){
 
 void STag_surfxml_link___ctn(){
 
-  simgrid::surf::LinkImpl* link;
+  simgrid::surf::LinkImpl* link = nullptr;
   char *link_name=nullptr;
   switch (A_surfxml_link___ctn_direction) {
   case AU_surfxml_link___ctn_direction: