return immediatly if we set NULL for the title of a window

i don't know what to do for ecore_x_icccm_name_class_set().
Should i return immediatly if one of the name or class is NULL ?


SVN revision: 43246
This commit is contained in:
Vincent Torri 2009-10-24 09:48:33 +00:00
parent a59b9655b2
commit 198b55badb
1 changed files with 2 additions and 0 deletions

View File

@ -413,6 +413,8 @@ ecore_x_icccm_title_set(Ecore_X_Window win, const char *t)
XTextProperty xprop;
int ret;
if (!t) return;
xprop.value = NULL;
#ifdef X_HAVE_UTF8_STRING
list[0] = strdup(t);