Evas font-engine: Fix an issue with font_run_end_get.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 30 May 2011 15:18:53 +0000 (15:18 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 30 May 2011 15:18:53 +0000 (15:18 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@59818 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_font_query.c

index d604e8a..fa945cf 100644 (file)
@@ -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 @@ evas_common_font_query_run_font_end_get(RGBA_Font *fn, RGBA_Font_Int **script_fi
                    * 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))
                          {