This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository terminology.

View the commit online.

commit 7f1c5de0935bd4dc9b778e785851c1261ffcdbce
Author: Boris Faure <bill...@gmail.com>
AuthorDate: Mon Sep 26 22:01:13 2022 +0200

    termio: fix CID1498353 about function not checked
---
 src/bin/termio.c | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/src/bin/termio.c b/src/bin/termio.c
index 2c2b6ac..20c4597 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -124,7 +124,7 @@ termio_reset_main_colors(Evas_Object *termio)
 
         bg = term_bg_get(sd->term);
         EINA_SAFETY_ON_NULL_RETURN(bg);
-        edje_object_color_class_set(bg, "BG",
+        if (edje_object_color_class_set(bg, "BG",
                                sd->saved_bg.r,
                                sd->saved_bg.g,
                                sd->saved_bg.b,
@@ -136,8 +136,12 @@ termio_reset_main_colors(Evas_Object *termio)
                                sd->saved_bg.r,
                                sd->saved_bg.g,
                                sd->saved_bg.b,
-                               sd->saved_bg.a);
-        edje_object_color_class_set(sd->cursor.obj, "CURSOR",
+                               sd->saved_bg.a)
+            != EINA_TRUE)
+          {
+             ERR("error setting color class '%s'", "BG");
+          }
+        if (edje_object_color_class_set(sd->cursor.obj, "CURSOR",
                                     sd->saved_cursor.r,
                                     sd->saved_cursor.g,
                                     sd->saved_cursor.b,
@@ -149,7 +153,11 @@ termio_reset_main_colors(Evas_Object *termio)
                                     sd->saved_cursor.r,
                                     sd->saved_cursor.g,
                                     sd->saved_cursor.b,
-                                    sd->saved_cursor.a);
+                                    sd->saved_cursor.a)
+            != EINA_TRUE)
+          {
+             ERR("error setting color class '%s'", "CURSOR");
+          }
         evas_object_textgrid_palette_set(
            sd->grid.obj,
            EVAS_TEXTGRID_PALETTE_STANDARD, 0,

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to