From 2d14debc53ffaece080273b9af65b703ca82b296 Mon Sep 17 00:00:00 2001 From: Rechi Date: Tue, 29 Jan 2019 14:13:29 +0100 Subject: [PATCH] [fix] logical or operation --- xbmc/addons/interfaces/GUI/ListItem.cpp | 2 +- xbmc/addons/interfaces/GUI/controls/FadeLabel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xbmc/addons/interfaces/GUI/ListItem.cpp b/xbmc/addons/interfaces/GUI/ListItem.cpp index e24f11b73f3f1..e5ec2557a26c7 100644 --- a/xbmc/addons/interfaces/GUI/ListItem.cpp +++ b/xbmc/addons/interfaces/GUI/ListItem.cpp @@ -274,7 +274,7 @@ void Interface_GUIListItem::set_art(void* kodiBase, void* handle, const char* ty { CAddonDll* addon = static_cast(kodiBase); CFileItemPtr* item = static_cast(handle); - if (!addon || !item || !type | !label) + if (!addon || !item || !type || !label) { CLog::Log(LOGERROR, "Interface_GUIListItem::%s - invalid handler data (kodiBase='%p', handle='%p', type= " diff --git a/xbmc/addons/interfaces/GUI/controls/FadeLabel.cpp b/xbmc/addons/interfaces/GUI/controls/FadeLabel.cpp index d313aa517d73a..47283e058d12e 100644 --- a/xbmc/addons/interfaces/GUI/controls/FadeLabel.cpp +++ b/xbmc/addons/interfaces/GUI/controls/FadeLabel.cpp @@ -53,7 +53,7 @@ void Interface_GUIControlFadeLabel::add_label(void* kodiBase, void* handle, cons { CAddonDll* addon = static_cast(kodiBase); CGUIFadeLabelControl* control = static_cast(handle); - if (!addon || !control | !label) + if (!addon || !control || !label) { CLog::Log(LOGERROR, "Interface_GUIControlFadeLabel::%s - invalid handler data (kodiBase='%p', handle='%p', label='%p') on addon '%s'", __FUNCTION__, kodiBase, handle, label, addon ? addon->ID().c_str() : "unknown");