]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Correct uninitialized variables
authorabd <abd@opencascade.com>
Fri, 12 May 2006 09:50:08 +0000 (09:50 +0000)
committerabd <abd@opencascade.com>
Fri, 12 May 2006 09:50:08 +0000 (09:50 +0000)
src/SMESH/SMESH_MeshEditor.cxx

index 5860687f6c47a29dd404d4f9487f38f2f001a097..572fa86c739a8b5e887066ea43f4533d1524c0bb 100644 (file)
@@ -4156,7 +4156,7 @@ SMESH_MeshEditor::Sew_Error
             // test a link geometrically
             gp_XYZ nextXYZ ( n->X(), n->Y(), n->Z() );
             bool linkIsBetter = false;
-            double dot, dist;
+            double dot = 0.0, dist = 0.0;
             if ( searchByDir ) { // choose most co-directed link
               dot = bordDir * ( nextXYZ - prevXYZ ).Normalized();
               linkIsBetter = ( dot > maxDot );