Fix bugs identified by using PVS Studio

* A few copy-paste errors, some tautological checks indicating errors, missing
  return value checks.
This commit is contained in:
baldurk
2020-01-17 19:53:38 +00:00
parent cec30d499a
commit d4e723bfd8
25 changed files with 57 additions and 43 deletions
+1 -1
View File
@@ -610,7 +610,7 @@ void ImageViewer::RefreshFile()
}
}
FreeEXRImage(&exrImage);
ret = FreeEXRImage(&exrImage);
// shouldn't get here but let's be safe
if(ret != 0)