From 2d9de42525ab0833f92870bca322f988dc658332 Mon Sep 17 00:00:00 2001 From: Julien Michel <julien.michel@orfeo-toolbox.org> Date: Mon, 2 Feb 2015 11:20:38 +0100 Subject: [PATCH] COV: Fixing coverity issues (structurally dead code) --- Code/IO/otbMSTARImageIO.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Code/IO/otbMSTARImageIO.cxx b/Code/IO/otbMSTARImageIO.cxx index 0aa0da6d8b..02bbb271cf 100644 --- a/Code/IO/otbMSTARImageIO.cxx +++ b/Code/IO/otbMSTARImageIO.cxx @@ -279,8 +279,8 @@ void MSTARImageIO::Read(void* buffer) tptr = (char *) strstr(tbuff, "native_header_length= "); if (tptr == (char *) NULL) { - itkExceptionMacro(<< "Can not determine native header length!\n"); fclose(MSTARfp); + itkExceptionMacro(<< "Can not determine native header length!\n"); } else { @@ -291,8 +291,8 @@ void MSTARImageIO::Read(void* buffer) tptr = (char *) strstr(tbuff, "NumberOfColumns= "); if (tptr == (char *) NULL) { - itkExceptionMacro(<< "Error: Can not determine MSTAR image width"); fclose(MSTARfp); + itkExceptionMacro(<< "Error: Can not determine MSTAR image width"); } else { @@ -304,8 +304,8 @@ void MSTARImageIO::Read(void* buffer) tptr = (char *) strstr(tbuff, "NumberOfRows= "); if (tptr == (char *) NULL) { - itkExceptionMacro(<< "Error: Can not determine MSTAR image height!"); fclose(MSTARfp); + itkExceptionMacro(<< "Error: Can not determine MSTAR image height!"); } else { @@ -596,8 +596,8 @@ void MSTARImageIO::ReadImageInformation() tptr = (char *) strstr(tbuff, "native_header_length= "); if (tptr == (char *) NULL) { - itkExceptionMacro(<< "Can not determine native header length!\n"); fclose(MSTARfp); + itkExceptionMacro(<< "Can not determine native header length!\n"); } else { @@ -608,8 +608,8 @@ void MSTARImageIO::ReadImageInformation() tptr = (char *) strstr(tbuff, "NumberOfColumns= "); if (tptr == (char *) NULL) { - itkExceptionMacro(<< "Error: Can not determine MSTAR image width"); fclose(MSTARfp); + itkExceptionMacro(<< "Error: Can not determine MSTAR image width"); } else { @@ -621,8 +621,8 @@ void MSTARImageIO::ReadImageInformation() tptr = (char *) strstr(tbuff, "NumberOfRows= "); if (tptr == (char *) NULL) { - itkExceptionMacro(<< "Error: Can not determine MSTAR image height!"); fclose(MSTARfp); + itkExceptionMacro(<< "Error: Can not determine MSTAR image height!"); } else { -- GitLab