From: Dana Jansens Date: Sun, 23 Mar 2003 19:44:30 +0000 (+0000) Subject: use gnew0 to make life easy X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=86a8d8031b089e8514b9b1656dc2c5f48fcb9a67;p=chaz%2Fopenbox use gnew0 to make life easy --- diff --git a/openbox/dispatch.c b/openbox/dispatch.c index d6f91a2f..08690a37 100644 --- a/openbox/dispatch.c +++ b/openbox/dispatch.c @@ -22,10 +22,7 @@ void dispatch_startup() 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()