[MOAB-dev] r4706 - MOAB/trunk/src

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Thu Mar 31 18:30:02 CDT 2011


Author: kraftche
Date: 2011-03-31 18:30:02 -0500 (Thu, 31 Mar 2011)
New Revision: 4706

Modified:
   MOAB/trunk/src/VarLenDenseTag.cpp
Log:
return correct error code for memory allocation failure

Modified: MOAB/trunk/src/VarLenDenseTag.cpp
===================================================================
--- MOAB/trunk/src/VarLenDenseTag.cpp	2011-03-31 22:30:08 UTC (rev 4705)
+++ MOAB/trunk/src/VarLenDenseTag.cpp	2011-03-31 23:30:02 UTC (rev 4706)
@@ -140,7 +140,7 @@
     mem = seq->data()->allocate_tag_array( mySequenceArray, sizeof(VarLenTag) );
     if (!mem) {
       error->set_last_error( "Memory allocation for var-len tag data failed" );
-      return MB_FAILURE;
+      return MB_MEMORY_ALLOCATION_FAILED;
     }
     
     memset( mem, 0, sizeof(VarLenTag) * seq->data()->size() );








































More information about the moab-dev mailing list