diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-13 11:20:05 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-13 11:20:05 +0000 |
| commit | 1430d59e96616435fdac4aad5a7713d3aae1ef83 (patch) | |
| tree | a20b66e800d9ec07b2035e48bd4fab1c65617502 /openbox | |
| parent | 1890e3b0e7562a8597f9f9b54744519306858a06 (diff) | |
fix another crash
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbox/screen.c b/openbox/screen.c index 24fa84ed..a562566e 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -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) \ |
