evas: silence compiler warning in textblock
authorXavi Artigas <xavierartigas@yahoo.es>
Wed, 2 Oct 2019 14:37:33 +0000 (16:37 +0200)
committerJongmin Lee <jm105.lee@samsung.com>
Thu, 3 Oct 2019 21:10:11 +0000 (06:10 +0900)
Uninitialized variable.

src/lib/evas/canvas/evas_object_textblock.c

index 8662b46..ac26774 100644 (file)
@@ -10028,7 +10028,7 @@ _evas_textblock_cursor_cluster_pos_get(Evas_Textblock_Cursor *cur, Eina_Bool inc
                        Evas_Text_Props_Info *info = ti->text_props.info;
                        int it_index = ((inc) ? cur->pos : ret) - last_it->text_pos;
 
-                       Evas_Font_OT_Info ot;
+                       Evas_Font_OT_Info ot = {0};
                        if (ti->text_props.len != ti->text_props.text_len)/*if code point count same as glyph count skip it*/
                          {
                             Evas_BiDi_Direction itdir = ti->text_props.bidi_dir;