billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=5b186b69a36fbb2aa1013ca373f18ece3a8c0493

commit 5b186b69a36fbb2aa1013ca373f18ece3a8c0493
Author: Boris Faure <bill...@gmail.com>
Date:   Sun Nov 15 00:13:25 2020 +0100

    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 4dc373a..a50fb39 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, \

-- 


Reply via email to