Эх сурвалжийг харах

Do not close a null file

Former-commit-id: 8dcb2da70de72b8bbf459616e87d6e7365df1dd2
barani 13 жил өмнө
parent
commit
e4546a4c3a
1 өөрчлөгдсөн 0 нэмэгдсэн , 1 устгасан
  1. 0 1
      readDMAT.h

+ 0 - 1
readDMAT.h

@@ -35,7 +35,6 @@ inline bool igl::readDMAT(const std::string file_name, Eigen::MatrixXd & W)
   FILE * fp = fopen(file_name.c_str(),"r");
   if(fp == NULL)
   {
-    fclose(fp);
     fprintf(stderr,"IOError: readDMAT() could not open %s...\n",file_name.c_str());
     return false; 
   }