diff options
author | Matthias Kortstiege <mkortstiege@kodi.tv> | 2015-07-05 07:52:19 +0200 |
---|---|---|
committer | Matthias Kortstiege <mkortstiege@kodi.tv> | 2015-07-07 22:21:58 +0200 |
commit | 42ec0662a079be4884a3111e2380eb99c1275296 (patch) | |
tree | 3a8ff5fc082b2a1aec248eeb7be35077aeb7399f /lib | |
parent | 73bfc9508f7f1d36bd6b7f1b7c2cbbbdcb4acf47 (diff) |
fix a few coverity warnings
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/libexif/ExifParse.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libexif/ExifParse.cpp b/lib/libexif/ExifParse.cpp index 64bb815ced..4b230f7fb3 100755 --- a/lib/libexif/ExifParse.cpp +++ b/lib/libexif/ExifParse.cpp @@ -507,10 +507,7 @@ void CExifParse::ProcessDir(const unsigned char* const DirStart, // Tends to be less accurate as distance increases. { float distance = (float)ConvertAnyFormat(ValuePtr, Format); - if (distance < 0) - m_ExifInfo->Distance = distance; // infinite - else - m_ExifInfo->Distance = distance; + m_ExifInfo->Distance = distance; } break; |