* edje: prevent unitialized text to go outside of this function.

SVN revision: 56650
This commit is contained in:
Cedric BAIL 2011-02-02 16:03:22 +00:00
parent 7404a67e5d
commit c69291f586
1 changed files with 4 additions and 1 deletions

View File

@ -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;