[MOAB-dev] r3186 - MOAB/trunk
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Thu Oct 1 10:15:23 CDT 2009
Author: kraftche
Date: 2009-10-01 10:15:22 -0500 (Thu, 01 Oct 2009)
New Revision: 3186
Modified:
MOAB/trunk/WriteSTL.cpp
Log:
fix valgrind error in stl_test: zero pad in struct used for binary I/O
Modified: MOAB/trunk/WriteSTL.cpp
===================================================================
--- MOAB/trunk/WriteSTL.cpp 2009-10-01 00:57:20 UTC (rev 3185)
+++ MOAB/trunk/WriteSTL.cpp 2009-10-01 15:15:22 UTC (rev 3186)
@@ -342,6 +342,7 @@
double coords[9];
BinTri tri;
+ tri.pad[0] = tri.pad[1] = '\0';
for (MBRange::const_iterator iter = triangles.begin();
iter != triangles.end(); ++iter)
{
More information about the moab-dev
mailing list