From: abd Date: Fri, 12 May 2006 09:50:08 +0000 (+0000) Subject: Correct uninitialized variables X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~27 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=891ac64c6bf44178f9ed48ba68794b2bbe0ddcc0;p=modules%2Fsmesh.git Correct uninitialized variables --- 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 );