use gnew0 to make life easy
This commit is contained in:
parent
5d7d6038ca
commit
86a8d8031b
1 changed files with 1 additions and 4 deletions
|
@ -22,10 +22,7 @@ void dispatch_startup()
|
||||||
j >>= 1;
|
j >>= 1;
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
funcs = g_new(GSList*, i);
|
funcs = g_new0(GSList*, i);
|
||||||
|
|
||||||
for (i = 0, j = 1; j < EVENT_RANGE; ++i, j <<= 1)
|
|
||||||
funcs[i] = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void dispatch_shutdown()
|
void dispatch_shutdown()
|
||||||
|
|
Loading…
Reference in a new issue