- make sure the string isn't blank before appending it

SVN revision: 17560
This commit is contained in:
Dan Sinclair 2005-10-15 05:19:11 +00:00 committed by Dan Sinclair
parent 5f828e6fdb
commit 051b5f6fc7
1 changed files with 2 additions and 1 deletions

View File

@ -270,6 +270,7 @@ _strbuf_append(char *s, char *s2, int *len, int *alloc)
if (!s2) return s;
l2 = strlen(s2);
if (l2 == 0) return s;
tlen = *len + l2;
if (tlen > *alloc)
{
@ -3967,7 +3968,7 @@ static void
evas_object_textblock_init(Evas_Object *obj)
{
Evas_Object_Textblock *o;
/* alloc image ob, setup methods and default values */
obj->object_data = evas_object_textblock_new();
/* set up default settings for this kind of object */