From 2780158702c72adafec0559fbd9d66a21fda853a Mon Sep 17 00:00:00 2001
From: Victor Poughon <victor.poughon@cnes.fr>
Date: Tue, 10 Oct 2017 11:57:30 +0200
Subject: [PATCH] Fix coverity #1350749

---
 Modules/Filtering/Statistics/include/otbPatternSampler.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Modules/Filtering/Statistics/include/otbPatternSampler.h b/Modules/Filtering/Statistics/include/otbPatternSampler.h
index 5a9b640a62..cc9dd9465d 100644
--- a/Modules/Filtering/Statistics/include/otbPatternSampler.h
+++ b/Modules/Filtering/Statistics/include/otbPatternSampler.h
@@ -49,7 +49,7 @@ public:
   typedef struct Parameter
     {
     /** Maximum size of the internal patterns */
-    unsigned long MaxPatternSize;
+    unsigned long MaxPatternSize = 0;
 
     /** First sampling pattern */
     std::vector<bool> Pattern1;
@@ -59,7 +59,7 @@ public:
     std::vector<bool> Pattern2;
 
     /** Seed used to randomly generate patterns (used only if greater than 0) */
-    unsigned int Seed;
+    unsigned int Seed = 0;
 
     bool operator!=(const struct Parameter  & param) const;
     } ParameterType; 
-- 
GitLab