projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1890e3b
)
fix another crash
author
Dana Jansens
<danakj@orodu.net>
Wed, 13 Jun 2007 11:20:05 +0000
(11:20 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 13 Jun 2007 11:20:05 +0000
(11:20 +0000)
openbox/screen.c
patch
|
blob
|
history
diff --git
a/openbox/screen.c
b/openbox/screen.c
index
24fa84e
..
a562566
100644
(file)
--- 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) \