From 0a9e7a92e97cd0e08a0c7e73c1f86bce1f0cb3da Mon Sep 17 00:00:00 2001
From: Julien Michel <julien.michel@orfeo-toolbox.org>
Date: Tue, 21 Oct 2014 15:45:59 +0200
Subject: [PATCH] COMP: Fixing warning (resolution may be uninitialized)

---
 Code/IO/otbImageFileReader.txx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Code/IO/otbImageFileReader.txx b/Code/IO/otbImageFileReader.txx
index 753c15e482..2e4e32e7bc 100644
--- a/Code/IO/otbImageFileReader.txx
+++ b/Code/IO/otbImageFileReader.txx
@@ -479,7 +479,7 @@ ImageFileReader<TOutputImage, ConvertPixelTraits>
     itk::ExposeMetaData(dict, MetaDataKey::ProjectionRefKey, projRef);
 
     // Compute spacing for an identity geotransform at current resolution
-    unsigned int resolution;
+    unsigned int resolution = 0;
     itk::ExposeMetaData<unsigned int>(dict,
                                       MetaDataKey::ResolutionFactor,
                                       resolution);
-- 
GitLab