From 5b186b69a36fbb2aa1013ca373f18ece3a8c0493 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sun, 15 Nov 2020 00:13:25 +0100 Subject: [PATCH] colors: show error in case applying NULL color scheme --- src/bin/colors.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bin/colors.c b/src/bin/colors.c index 4dc373a2..a50fb39d 100644 --- a/src/bin/colors.c +++ b/src/bin/colors.c @@ -535,8 +535,7 @@ void color_scheme_apply(Evas_Object *edje, const Color_Scheme *cs) { - if (!cs) - return; + EINA_SAFETY_ON_NULL_RETURN(cs); #define CS_SET(_K, _F) do {\ edje_object_color_class_set(edje, _K, \