Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/edje
Dir : e17/libs/edje/src/lib Modified Files: edje_util.c Log Message: tweak. if edje_fontset_append_set() is passed NULL, free the global variable and set it to NULL instead of not doing anything =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_util.c,v retrieving revision 1.55 retrieving revision 1.56 diff -u -3 -r1.55 -r1.56 --- edje_util.c 28 Mar 2005 14:14:15 -0000 1.55 +++ edje_util.c 28 Mar 2005 14:26:29 -0000 1.56 @@ -44,11 +44,9 @@ void edje_fontset_append_set(char *fonts) { - if (!fonts) return; - if (_edje_fontset_append) free(_edje_fontset_append); - _edje_fontset_append = strdup(fonts); + _edje_fontset_append = fonts ? strdup(fonts) : NULL; } /* FIXDOC: Expand */ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs