From: eap Date: Wed, 22 Dec 2021 15:32:40 +0000 (+0300) Subject: Conditional jump or move depends on uninitialised value X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=61b08a6b20212ec9fb9c6cf84cbf8bdc82c143a8;p=modules%2Fsmesh.git Conditional jump or move depends on uninitialised value --- diff --git a/src/SMESH/SMESH_Homard.cxx b/src/SMESH/SMESH_Homard.cxx index 9351216ac..44dd23937 100644 --- a/src/SMESH/SMESH_Homard.cxx +++ b/src/SMESH/SMESH_Homard.cxx @@ -4093,6 +4093,7 @@ namespace // actual projection algorithms newSolution[0], newSolution[1]); projection = ElSLib::CylinderValue( newSolution[0], newSolution[1], _cylinder.Position(), _cylinder.Radius() ); + _dist = point.Distance( projection ); return ( _dist * _dist < maxDist2 ) && SurfaceProjector::classify( newSolution ); }