From: cedric Date: Wed, 2 Feb 2011 16:03:22 +0000 (+0000) Subject: * edje: prevent unitialized text to go outside of this function. X-Git-Tag: submit/trunk/20120815.180907~733 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8afa51853aaf27a04ebb6cf5bb2cac1b56ad9e37;p=profile%2Fivi%2Fedje.git * edje: prevent unitialized text to go outside of this function. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@56650 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/edje_text.c b/src/lib/edje_text.c index fe58927..7d30286 100644 --- a/src/lib/edje_text.c +++ b/src/lib/edje_text.c @@ -193,6 +193,8 @@ _edje_text_fit_x(Edje *ed, Edje_Real_Part *ep, } } + buf[0] = '\0'; + while (((c1 >= 0) || (c2 >= 0)) && (tw > sw)) { loop++; @@ -321,7 +323,8 @@ _edje_text_recalc_apply(Edje *ed, Edje_Real_Part *ep, Edje_Calc_Params *params, Edje_Part_Description_Text *chosen_desc) { - const char *text, *str; + const char *text = NULL; + const char *str; const char *font; char *font2 = NULL; char *sfont = NULL;