diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-23 19:44:30 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-23 19:44:30 +0000 |
| commit | 86a8d8031b089e8514b9b1656dc2c5f48fcb9a67 (patch) | |
| tree | 0e65107714585ffb571c8724583921b8d2ad85fa /openbox/dispatch.c | |
| parent | 5d7d6038ca46f6d92fcfa1d46f4ebe76ebc9b2e2 (diff) | |
use gnew0 to make life easy
Diffstat (limited to 'openbox/dispatch.c')
| -rw-r--r-- | openbox/dispatch.c | 5 |
1 files changed, 1 insertions, 4 deletions
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() |
