Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
The surf_file_to_parse have to be set to NULL after closing file
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 20 Oct 2010 09:29:55 +0000 (09:29 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 20 Oct 2010 09:29:55 +0000 (09:29 +0000)
if we want to use bypass.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8438 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/surfxml_parse.c

index bf52830..d529599 100644 (file)
@@ -296,6 +296,7 @@ void surf_parse_close(void)
   if (surf_file_to_parse) {
     surf_parse__delete_buffer(surf_input_buffer);
     fclose(surf_file_to_parse);
+    surf_file_to_parse = NULL; //Must be reset for Bypass
   }
 }