Skip to content

Commit

Permalink
Merge pull request xbmc#18927 from lrusak/coverity-fixes
Browse files Browse the repository at this point in the history
A couple coverity fixes
  • Loading branch information
ksooo committed Dec 21, 2020
2 parents babe1c5 + 1a0a9be commit a80ea70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xbmc/platform/linux/input/LibInputSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ CLibInputSettings::CLibInputSettings(CLibInputHandler *handler) :
return;

auto settingsManager = settings->GetSettingsManager();
if (!settingsComponent)
if (!settingsManager)
return;

auto setting = settings->GetSetting(SETTING_INPUT_LIBINPUTKEYBOARDLAYOUT);
Expand Down
2 changes: 1 addition & 1 deletion xbmc/utils/EGLImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ bool CEGLImage::CreateImage(EglAttrs imageAttrs)
}
else
{
if (eglAttrKey->first == EGL_LINUX_DRM_FOURCC_EXT)
if (eglAttrKey != eglAttributes.end() && eglAttrKey->first == EGL_LINUX_DRM_FOURCC_EXT)
valueStr = FourCCToString(attrs[i + 1]);
else
valueStr = std::to_string(attrs[i + 1]);
Expand Down

0 comments on commit a80ea70

Please sign in to comment.