From 6909d912c54a6c059d4980aa03e794dc57d4218d Mon Sep 17 00:00:00 2001 From: Eric Bechet <eric.bechet@ulg.ac.be> Date: Thu, 11 Apr 2013 23:03:03 +0000 Subject: [PATCH] nasty bug ;) --- Geo/GModelIO_MSH.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Geo/GModelIO_MSH.cpp b/Geo/GModelIO_MSH.cpp index 369186b338..a77663bbab 100644 --- a/Geo/GModelIO_MSH.cpp +++ b/Geo/GModelIO_MSH.cpp @@ -194,9 +194,10 @@ int GModel::readMSH(const std::string &name) MVertex *vertex = 0; if(!binary){ if(fscanf(fp, "%d %lf %lf %lf %d", &num, &xyz[0], &xyz[1], &xyz[2], - &entity) != 5) + &entity) != 5) { fclose(fp); return 0; + } } else{ if(fread(&num, sizeof(int), 1, fp) != 1){ fclose(fp); return 0; } -- GitLab