[MOAB-dev] r5070 - MOAB/trunk/src/io/mhdf/src

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Fri Jul 22 16:39:30 CDT 2011


Author: kraftche
Date: 2011-07-22 16:39:30 -0500 (Fri, 22 Jul 2011)
New Revision: 5070

Modified:
   MOAB/trunk/src/io/mhdf/src/file-desc.c
Log:
fix SEGFAULT reading .h5m file with no tags (never actually happens because MOAB always creates GLOBAL_ID and a few others)

Modified: MOAB/trunk/src/io/mhdf/src/file-desc.c
===================================================================
--- MOAB/trunk/src/io/mhdf/src/file-desc.c	2011-07-21 19:09:54 UTC (rev 5069)
+++ MOAB/trunk/src/io/mhdf/src/file-desc.c	2011-07-22 21:39:30 UTC (rev 5070)
@@ -475,7 +475,7 @@
   
     /* get tag list */
   tag_names = mhdf_getTagNames( file_handle, &num_tag_names, status );
-  if (tag_names == NULL) {
+  if (mhdf_isError(status)) {
     free( elem_handles );
     free( result );
     return NULL;








































More information about the moab-dev mailing list