[cgma-dev] r3165 - cgm/trunk/itaps
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Thu Sep 24 17:14:13 CDT 2009
Author: kraftche
Date: 2009-09-24 17:14:13 -0500 (Thu, 24 Sep 2009)
New Revision: 3165
Modified:
cgm/trunk/itaps/testgeom.cc
Log:
fix passing of uninitialized value
Modified: cgm/trunk/itaps/testgeom.cc
===================================================================
--- cgm/trunk/itaps/testgeom.cc 2009-09-24 22:13:40 UTC (rev 3164)
+++ cgm/trunk/itaps/testgeom.cc 2009-09-24 22:14:13 UTC (rev 3165)
@@ -1223,7 +1223,7 @@
std::vector<char> firmness(firmness_size * entities.size());
char* byte_ptr = &firmness[0];
- int err, junk1, junk2 = entities.size()*firmness_size;
+ int err, junk1 = firmness.size(), junk2 = entities.size()*firmness_size;
iGeom_getArrData( geom, &entities[0], entities.size(), firmness_tag, &byte_ptr, &junk1, &junk2, &err );
if (iBase_SUCCESS != err)
return err;
More information about the cgma-dev
mailing list