Fix 2 coverity issues

This commit is contained in:
heckflosse 2018-11-20 00:10:38 +01:00
parent 62271cbf59
commit ab2593cf93
2 changed files with 1 additions and 3 deletions

View File

@ -206,7 +206,7 @@ inline void RawImageSource::interpolate_row_rb (float* ar, float* ab, float* pg,
n++; n++;
} }
nonGreen2[j] = cg[j] + nonGreen / n; nonGreen2[j] = cg[j] + nonGreen / std::max(n, 1);
} }
} }

View File

@ -127,9 +127,7 @@ void findOriginalEntries (const std::vector<ThumbBrowserEntryBase*>& entries)
FileBrowser::FileBrowser () : FileBrowser::FileBrowser () :
menuLabel(nullptr), menuLabel(nullptr),
#ifdef WIN32
miOpenDefaultViewer(nullptr), miOpenDefaultViewer(nullptr),
#endif
selectDF(nullptr), selectDF(nullptr),
thisIsDF(nullptr), thisIsDF(nullptr),
autoDF(nullptr), autoDF(nullptr),