diff --git a/Geo/GModelIO_MSH.cpp b/Geo/GModelIO_MSH.cpp index 369186b338ed29900da373702cf29051612c0585..a77663bbab5314173710b1161cf1c0d07dfce0da 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; }