use gnew0 to make life easy
Dana Jansens danakj@orodu.net
1 files changed,
1 insertions(+),
4 deletions(-)
jump to
M
openbox/dispatch.c
→
openbox/dispatch.c
@@ -22,10 +22,7 @@ while (j > 1) {
j >>= 1; ++i; } - funcs = g_new(GSList*, i); - - for (i = 0, j = 1; j < EVENT_RANGE; ++i, j <<= 1) - funcs[i] = NULL; + funcs = g_new0(GSList*, i); } void dispatch_shutdown()