Enlightenment CVS committal Author : raster Project : e17 Module : libs/edje
Dir : e17/libs/edje/src/lib Modified Files: edje_util.c Log Message: and handle NULL text params =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_util.c,v retrieving revision 1.48 retrieving revision 1.49 diff -u -3 -r1.48 -r1.49 --- edje_util.c 11 Dec 2004 19:08:55 -0000 1.48 +++ edje_util.c 12 Jan 2005 02:58:17 -0000 1.49 @@ -487,7 +487,8 @@ (!strcmp(rp->text.text, text))) return; if (rp->text.text) free(rp->text.text); - rp->text.text = strdup(text); + if (text) rp->text.text = strdup(text); + else rp->text.text = NULL; ed->dirty = 1; _edje_recalc(ed); if (ed->text_change.func) ed->text_change.func(ed->text_change.data, obj, part); ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs