From: <enl...@li...> - 2005-11-27 07:02:40
|
Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/evas Dir : e17/libs/evas/src/lib/canvas Modified Files: evas_object_text.c Log Message: Avoid allocations on "". =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/canvas/evas_object_text.c,v retrieving revision 1.45 retrieving revision 1.46 diff -u -3 -r1.45 -r1.46 --- evas_object_text.c 26 Nov 2005 15:56:51 -0000 1.45 +++ evas_object_text.c 27 Nov 2005 07:02:34 -0000 1.46 @@ -294,7 +294,7 @@ obj->layer->evas->pointer.y, 1, 1); /* DO II */ if (o->cur.text) free(o->cur.text); - if (text) o->cur.text = strdup(text); + if (text && *text) o->cur.text = strdup(text); else o->cur.text = NULL; o->prev.text = NULL; if ((o->engine_data) && (o->cur.text)) |