projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7404a67
)
* edje: prevent unitialized text to go outside of this function.
author
Cedric BAIL
<cedric.bail@free.fr>
Wed, 2 Feb 2011 16:03:22 +0000
(16:03 +0000)
committer
Cedric BAIL
<cedric.bail@free.fr>
Wed, 2 Feb 2011 16:03:22 +0000
(16:03 +0000)
SVN revision: 56650
legacy/edje/src/lib/edje_text.c
patch
|
blob
|
history
diff --git
a/legacy/edje/src/lib/edje_text.c
b/legacy/edje/src/lib/edje_text.c
index
fe58927
..
7d30286
100644
(file)
--- a/
legacy/edje/src/lib/edje_text.c
+++ b/
legacy/edje/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;