]> Dogcows Code - chaz/openbox/commitdiff
use gnew0 to make life easy
authorDana Jansens <danakj@orodu.net>
Sun, 23 Mar 2003 19:44:30 +0000 (19:44 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 23 Mar 2003 19:44:30 +0000 (19:44 +0000)
openbox/dispatch.c

index d6f91a2f6b66c42fa57e46467a7021a4b458fc0e..08690a3715c9e74e8ed1842400f2572f3eab4817 100644 (file)
@@ -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()
This page took 0.02416 seconds and 4 git commands to generate.