Skip to content
Snippets Groups Projects
Commit d93338a8 authored by Julien Michel's avatar Julien Michel
Browse files

COV: Fixing coverity issue 1221585 (Unchecked return value from library)

parent 41183c87
No related branches found
No related tags found
No related merge requests found
......@@ -370,12 +370,18 @@ void MSTARImageIO::Read(void* buffer)
{
case CHIP_IMAGE:
magloc = phlen;
fseek(MSTARfp, magloc, 0);
if(fseek(MSTARfp, magloc, 0))
{
itkExceptionMacro(<<" Problem while reading file "<<MSTARname);
}
nchunks = numrows * numcols;
break;
case FSCENE_IMAGE:
magloc = phlen + nhlen; /* nhlen = 512 */
fseek(MSTARfp, magloc, 0);
if(fseek(MSTARfp, magloc, 0))
{
itkExceptionMacro(<<" Problem while reading file "<<MSTARname);
}
nchunks = numrows * numcols;
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment