return immediatly if we set NULL for the title of a window
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 24 Oct 2009 09:48:33 +0000 (09:48 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 24 Oct 2009 09:48:33 +0000 (09:48 +0000)
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 ?

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@43246 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_x/xlib/ecore_x_icccm.c

index 887ec35..9bc7bcc 100644 (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);