0027541: ShapeFix_ComposeShell allows usage of uninitialized value of the field myInv...
authormsv <msv@opencascade.com>
Wed, 25 May 2016 16:23:52 +0000 (19:23 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 27 May 2016 08:57:41 +0000 (11:57 +0300)
Initialize all fields of the class in the constructor.

src/ShapeFix/ShapeFix_ComposeShell.cxx

index 276aa59..230e140 100644 (file)
@@ -84,7 +84,16 @@ IMPLEMENT_STANDARD_RTTIEXT(ShapeFix_ComposeShell,ShapeFix_Root)
 //purpose  : 
 //=======================================================================
 ShapeFix_ComposeShell::ShapeFix_ComposeShell () : 
-       myStatus(0), myClosedMode(Standard_False)
+       myOrient(TopAbs_FORWARD),
+       myStatus(0),
+       myUResolution(RealLast()),
+       myVResolution(RealLast()),
+       myInvertEdgeStatus(Standard_True),
+       myClosedMode(Standard_False),
+       myUClosed(Standard_False),
+       myVClosed(Standard_False),
+       myUPeriod(0.),
+       myVPeriod(0.)
 {
   myTransferParamTool = new ShapeAnalysis_TransferParametersProj;
 }