]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix non initialized value.
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 6 Nov 2014 12:49:41 +0000 (15:49 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 6 Nov 2014 12:49:41 +0000 (15:49 +0300)
src/PartSet/PartSet_Tools.cpp

index 0344269bb22e4dbf1e31fd6d3b78420619048a79..b5407f6f78a49a442fa64411b5d11eedcd93b7bc 100644 (file)
@@ -231,7 +231,7 @@ double PartSet_Tools::featureValue(FeaturePtr theFeature, const std::string& the
                                    bool& isValid)
 {
   isValid = false;
-  double aValue;
+  double aValue = 0;
   if (theFeature) {
     boost::shared_ptr<ModelAPI_Data> aData = theFeature->data();
     AttributeDoublePtr anAttribute = boost::dynamic_pointer_cast<ModelAPI_AttributeDouble>(