From 41183c87a752c0fd95d4a5e4da8d4b028d04d788 Mon Sep 17 00:00:00 2001 From: Julien Michel <julien.michel@orfeo-toolbox.org> Date: Tue, 3 Feb 2015 11:22:46 +0100 Subject: [PATCH] COV: Fixing coverity issues (uninitialized scalar field) --- Code/IO/otbMSTARImageIO.cxx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Code/IO/otbMSTARImageIO.cxx b/Code/IO/otbMSTARImageIO.cxx index 02bbb271cf..fef1f0c3f3 100644 --- a/Code/IO/otbMSTARImageIO.cxx +++ b/Code/IO/otbMSTARImageIO.cxx @@ -62,6 +62,26 @@ MSTARImageIO::MSTARImageIO() MSTARfp = NULL; /* Input FILE ptr to MSTAR image file */ HDRfp = NULL; /* Output FILE ptr to MSTAR header file */ + RAWfp = NULL; + + i = 0; + j = 0; + rv = 0; + n = 0; + numrows = 0; + numcols = 0; + numgot = 0; + outOpt = 0; + phlen = 0; + nhlen = 0; + mstartype = 0; + magloc = 0; + bytesPerImage = 0; + nchunks = 0; + totchunks = 0; + byteorder = 0; + littleushortval = 0; + littlefloatval = 0.; MSTARname = NULL; /* Input MSTAR filename */ @@ -71,6 +91,8 @@ MSTARImageIO::MSTARImageIO() FSCENEdata = NULL; /* Ptr to Fullscene data buffer */ CHIPdata = NULL; /* Ptr to CHIp data buffer */ + + } /** Destructor */ -- GitLab