raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a9650209a4c9badc5a86573c9bb38918dd6ab455

commit a9650209a4c9badc5a86573c9bb38918dd6ab455
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Wed Nov 28 12:39:45 2018 +0000

    efl ui text - check if string exists beofre using it...
    
    don't segv.
---
 src/lib/elementary/efl_ui_text.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/efl_ui_text.c b/src/lib/elementary/efl_ui_text.c
index 9c0d292356..8cfed9a062 100644
--- a/src/lib/elementary/efl_ui_text.c
+++ b/src/lib/elementary/efl_ui_text.c
@@ -2100,7 +2100,7 @@ _update_text_theme(Eo *obj, Efl_Ui_Text_Data *sd)
 
    // color
    colorcode = edje_object_data_get(wd->resize_obj, "guide.style.color");
-   if (_format_color_parse(colorcode, strlen(colorcode), &r, &g, &b, &a))
+   if (colorcode && _format_color_parse(colorcode, strlen(colorcode), &r, &g, 
&b, &a))
      {
         efl_text_normal_color_set(sd->text_guide_obj, r, g, b, a);
      }

-- 


Reply via email to