fix another crash

This commit is contained in:
Dana Jansens 2007-06-13 11:20:05 +00:00
parent 1890e3b0e7
commit 1430d59e96

View file

@ -1100,7 +1100,7 @@ void screen_install_colormap(ObClient *client, gboolean install)
#define RESET_STRUT_LIST(sl) \
{if (sl) for (i = 0; sl[i]; ++i) g_slist_free(sl[i]); \
sl = g_renew(GSList*, sl, screen_num_desktops + 1); \
sl[screen_num_desktops] = NULL;} /* null terminated */
memset(sl, sizeof(GSList*) * screen_num_desktops, NULL);}
#define ADD_STRUT_TO_LIST(sl, d, s) \
{for (i = 0; i < screen_num_desktops; ++i) \