From: Enlightenment S. <no-...@en...> - 2011-05-30 15:19:00
|
Log: Evas font-engine: Fix an issue with font_run_end_get. Author: tasn Date: 2011-05-30 08:18:53 -0700 (Mon, 30 May 2011) New Revision: 59818 Trac: http://trac.enlightenment.org/e/changeset/59818 Modified: trunk/evas/src/lib/engines/common/evas_font_query.c Modified: trunk/evas/src/lib/engines/common/evas_font_query.c =================================================================== --- trunk/evas/src/lib/engines/common/evas_font_query.c 2011-05-30 13:59:18 UTC (rev 59817) +++ trunk/evas/src/lib/engines/common/evas_font_query.c 2011-05-30 15:18:53 UTC (rev 59818) @@ -21,7 +21,7 @@ EAPI int evas_common_font_query_run_font_end_get(RGBA_Font *fn, RGBA_Font_Int **script_fi, RGBA_Font_Int **cur_fi, Evas_Script_Type script, const Eina_Unicode *text, int run_len) { - RGBA_Font_Int *fi; + RGBA_Font_Int *fi = NULL; const Eina_Unicode *run_end = text + run_len; const Eina_Unicode *itr; @@ -101,6 +101,7 @@ * font */ for ( ; itr < run_end ; itr++) { + tmp_fi = fi; if (evas_common_get_char_index(fi, *itr) || evas_common_font_glyph_search(fn, &tmp_fi, *itr)) { |