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

tautges at mcs.anl.gov tautges at mcs.anl.gov
Wed Jan 11 08:55:25 CST 2012


Author: tautges
Date: 2012-01-11 08:55:18 -0600 (Wed, 11 Jan 2012)
New Revision: 5304

Modified:
   MOAB/trunk/src/WriteUtil.cpp
Log:
Uninitialized variable, caught by static analysis tool run at LLNL.




Modified: MOAB/trunk/src/WriteUtil.cpp
===================================================================
--- MOAB/trunk/src/WriteUtil.cpp	2012-01-10 23:44:45 UTC (rev 5303)
+++ MOAB/trunk/src/WriteUtil.cpp	2012-01-11 14:55:18 UTC (rev 5304)
@@ -77,7 +77,7 @@
                                        /**< number of sets in list */
                                      ) 
 {
-  ErrorCode rval;
+  ErrorCode rval = MB_SUCCESS;
   if (!ent_sets || num_sets == 0) {
     rval = mMB->get_entities_by_handle(0, all_ents);
   }








































More information about the moab-dev mailing list