From 14ee3352ea5f6961aabf687e53c8abb8388ca87c Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 3 Dec 2001 09:07:46 +0000 Subject: [PATCH] fix infinite loop when merging mesh in yacc --- Parser/OpenFile.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Parser/OpenFile.cpp b/Parser/OpenFile.cpp index 564071f207..93cda91058 100644 --- a/Parser/OpenFile.cpp +++ b/Parser/OpenFile.cpp @@ -1,4 +1,4 @@ -// $Id: OpenFile.cpp,v 1.23 2001-12-03 08:41:45 geuzaine Exp $ +// $Id: OpenFile.cpp,v 1.24 2001-12-03 09:07:46 geuzaine Exp $ #include "Gmsh.h" #include "Numeric.h" @@ -63,7 +63,10 @@ int ParseFile(char *f){ } else{ while(!feof(yyin)) yyparse(); - status = 0; + if(THEM) + status = THEM->status; + else + status = 0; } fclose(yyin); -- GitLab