0031035: Coding - uninitialized class fields reported by Visual Studio Code Analysis
[occt.git] / src / IntAna / IntAna_IntQuadQuad.cxx
index 73ff100..41f61cd 100644 (file)
@@ -183,7 +183,8 @@ TrigonometricRoots::TrigonometricRoots(const Standard_Real CC,
                                       const Standard_Real S,
                                       const Standard_Real Cte,
                                       const Standard_Real Binf,
-                                      const Standard_Real Bsup) 
+                                      const Standard_Real Bsup)
+: infinite_roots(Standard_False)
 {
   Standard_Integer i, j, SvNbRoots;
   Standard_Boolean Triee;
@@ -317,6 +318,8 @@ IntAna_IntQuadQuad::IntAna_IntQuadQuad(void) {
   myNbMaxCurves=12;
   myEpsilon=0.00000001;
   myEpsilonCoeffPolyNull=0.00000001;
+  memset (nextcurve, 0, sizeof (nextcurve));
+  memset (previouscurve, 0, sizeof (previouscurve));
 }
 //=======================================================================
 //function : IntAna_IntQuadQuad::IntAna_IntQuadQuad