[MOAB-dev] r1693 - MOAB/trunk

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Tue Mar 25 12:47:24 CDT 2008


Author: kraftche
Date: 2008-03-25 12:47:24 -0500 (Tue, 25 Mar 2008)
New Revision: 1693

Modified:
   MOAB/trunk/MBCore.cpp
Log:
fix wrong (and possibly uninitialized) return value

Modified: MOAB/trunk/MBCore.cpp
===================================================================
--- MOAB/trunk/MBCore.cpp	2008-03-25 17:42:26 UTC (rev 1692)
+++ MOAB/trunk/MBCore.cpp	2008-03-25 17:47:24 UTC (rev 1693)
@@ -1878,7 +1878,7 @@
   for (MBRange::const_reverse_iterator i = range.rbegin(); i != range.rend(); ++i)
     if (MB_SUCCESS != (rval = delete_entities( &*i, 1)))
       result = rval;
-  return rval;
+  return result;
 }
 
 MBErrorCode MBCore::list_entities(const MBEntityHandle *entities,




More information about the moab-dev mailing list