tweak. if edje_fontset_append_set() is passed NULL, free the global variable and set it to NULL instead of not doing anything

SVN revision: 13964
This commit is contained in:
tsauerbeck 2005-03-28 14:26:29 +00:00 committed by tsauerbeck
parent c095b1e9fd
commit 9f1af178f3
1 changed files with 1 additions and 3 deletions

View File

@ -44,11 +44,9 @@ edje_thaw(void)
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 */