From: msv Date: Wed, 25 May 2016 16:23:52 +0000 (+0300) Subject: 0027541: ShapeFix_ComposeShell allows usage of uninitialized value of the field myInv... X-Git-Tag: V7_0_winwerth~37 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=a002d297f7c4ff95e0cabfa5622d2477b6c97edc;p=occt-copy.git 0027541: ShapeFix_ComposeShell allows usage of uninitialized value of the field myInvertEdgeStatus Initialize all fields of the class in the constructor. --- diff --git a/src/ShapeFix/ShapeFix_ComposeShell.cxx b/src/ShapeFix/ShapeFix_ComposeShell.cxx index 276aa590d5..230e14066b 100644 --- a/src/ShapeFix/ShapeFix_ComposeShell.cxx +++ b/src/ShapeFix/ShapeFix_ComposeShell.cxx @@ -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; }