edje entry - fix format appending with just empty strings

this fixes CID 1039647 - it caught a real bug. we were not skipping
out on an empty + or - push/pop format fomamnt if it had nothing
there. not actually something people do - but possible. fix!
This commit is contained in:
Carsten Haitzler 2014-08-14 19:32:45 +09:00
parent 53ddf83842
commit bc6eb8fcec
1 changed files with 2 additions and 2 deletions

View File

@ -314,7 +314,7 @@ _text_filter_format_prepend(Edje *ed, Entry *en, Evas_Textblock_Cursor *c, const
{
s++;
while (*s == ' ') s++;
if (!s)
if (!*s)
{
free(text2);
return;
@ -332,7 +332,7 @@ _text_filter_format_prepend(Edje *ed, Entry *en, Evas_Textblock_Cursor *c, const
{
s++;
while (*s == ' ') s++;
if (!s)
if (!*s)
{
free(text2);
return;