[MOAB-dev] r1356 - MOAB/trunk

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Mon Nov 5 17:17:01 CST 2007


Author: kraftche
Date: 2007-11-05 17:17:01 -0600 (Mon, 05 Nov 2007)
New Revision: 1356

Modified:
   MOAB/trunk/SparseTagCollections.cpp
Log:
fix use of uninitialized value

Modified: MOAB/trunk/SparseTagCollections.cpp
===================================================================
--- MOAB/trunk/SparseTagCollections.cpp	2007-11-05 18:55:19 UTC (rev 1355)
+++ MOAB/trunk/SparseTagCollections.cpp	2007-11-05 23:17:01 UTC (rev 1356)
@@ -330,6 +330,7 @@
 //! get number of entities of type
 MBErrorCode SparseTagCollection::get_number_entities(MBEntityType type, int& num_entities)
 {
+  num_entities = 0;
   std::map<MBEntityHandle, void*>::iterator iter;
   for(iter = mData.begin(); iter != mData.end(); ++iter)
   {




More information about the moab-dev mailing list