From a403ca75c246e286a3f9129e89bd0d16ed5d4813 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 30 May 2011 10:55:31 +0000 Subject: [PATCH] Evas text/textblock: init cur_fi to NULL. SVN revision: 59808 --- legacy/evas/src/lib/canvas/evas_object_text.c | 2 +- legacy/evas/src/lib/canvas/evas_object_textblock.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/evas/src/lib/canvas/evas_object_text.c b/legacy/evas/src/lib/canvas/evas_object_text.c index 4bf7397..e0463c6 100644 --- a/legacy/evas/src/lib/canvas/evas_object_text.c +++ b/legacy/evas/src/lib/canvas/evas_object_text.c @@ -583,7 +583,7 @@ _evas_object_text_layout(Evas_Object *obj, Evas_Object_Text *o, const Eina_Unico while (script_len > 0) { - Evas_Font_Instance *cur_fi; + Evas_Font_Instance *cur_fi = NULL; int run_len = script_len; if (o->font) { diff --git a/legacy/evas/src/lib/canvas/evas_object_textblock.c b/legacy/evas/src/lib/canvas/evas_object_textblock.c index efee648..90fcc19 100644 --- a/legacy/evas/src/lib/canvas/evas_object_textblock.c +++ b/legacy/evas/src/lib/canvas/evas_object_textblock.c @@ -2845,7 +2845,7 @@ skip: while (script_len > 0) { - Evas_Font_Instance *cur_fi; + Evas_Font_Instance *cur_fi = NULL; int run_len = script_len; ti = _layout_text_item_new(c, fmt); ti->parent.text_node = n; -- 2.7.4