Fix 2 coverity issues
This commit is contained in:
parent
62271cbf59
commit
ab2593cf93
@ -206,7 +206,7 @@ inline void RawImageSource::interpolate_row_rb (float* ar, float* ab, float* pg,
|
||||
n++;
|
||||
}
|
||||
|
||||
nonGreen2[j] = cg[j] + nonGreen / n;
|
||||
nonGreen2[j] = cg[j] + nonGreen / std::max(n, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -127,9 +127,7 @@ void findOriginalEntries (const std::vector<ThumbBrowserEntryBase*>& entries)
|
||||
|
||||
FileBrowser::FileBrowser () :
|
||||
menuLabel(nullptr),
|
||||
#ifdef WIN32
|
||||
miOpenDefaultViewer(nullptr),
|
||||
#endif
|
||||
selectDF(nullptr),
|
||||
thisIsDF(nullptr),
|
||||
autoDF(nullptr),
|
||||
|
Loading…
x
Reference in New Issue
Block a user