From 891ac64c6bf44178f9ed48ba68794b2bbe0ddcc0 Mon Sep 17 00:00:00 2001 From: abd Date: Fri, 12 May 2006 09:50:08 +0000 Subject: [PATCH] Correct uninitialized variables --- src/SMESH/SMESH_MeshEditor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index 5860687f6..572fa86c7 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -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 ); -- 2.39.2