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

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Tue Nov 16 12:44:16 CST 2010


Author: kraftche
Date: 2010-11-16 12:44:16 -0600 (Tue, 16 Nov 2010)
New Revision: 4270

Modified:
   MOAB/trunk/src/Range.cpp
Log:
fix use of uninitialized iterator in Range::subset_by_dimension

Modified: MOAB/trunk/src/Range.cpp
===================================================================
--- MOAB/trunk/src/Range.cpp	2010-11-16 16:29:47 UTC (rev 4269)
+++ MOAB/trunk/src/Range.cpp	2010-11-16 18:44:16 UTC (rev 4270)
@@ -989,7 +989,7 @@
   iterator en;
   if (d < 4) { // dimension 4 is MBENTITYSET
     EntityHandle handle2 = CREATE_HANDLE( CN::TypeDimensionMap[d+1].first, 0 );
-    iterator en = lower_bound( st, end(), handle2 );
+    en = lower_bound( st, end(), handle2 );
   }
   else {
     en = end();








































More information about the moab-dev mailing list