From df8945ec9116a22a9595b976279608f687a16b74 Mon Sep 17 00:00:00 2001 From: Julien Michel <julien.michel@orfeo-toolbox.org> Date: Fri, 30 Jan 2015 10:22:57 +0100 Subject: [PATCH] COV: Fixing coverity issue 1221767 (Uninitialized scalar variable) --- Applications/Segmentation/otbLSMSSmallRegionsMerging.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Segmentation/otbLSMSSmallRegionsMerging.cxx b/Applications/Segmentation/otbLSMSSmallRegionsMerging.cxx index 7609413f07..b8748ba544 100644 --- a/Applications/Segmentation/otbLSMSSmallRegionsMerging.cxx +++ b/Applications/Segmentation/otbLSMSSmallRegionsMerging.cxx @@ -316,7 +316,7 @@ private: //Searching the "nearest" region for(std::set<int>::iterator itMinLabel=minLabel.begin(); itMinLabel!=minLabel.end(); ++itMinLabel) { - LabelImagePixelType curLabel = *itMinLabel, adjLabel; + LabelImagePixelType curLabel = *itMinLabel, adjLabel(0); double err = itk::NumericTraits<double>::max(); if(edgeLabel.count(curLabel)==0) { -- GitLab