mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
slice-test: Use new g_newa0() function
Replace old `g_alloca()` and `memset()` with `g_newa0()`
This commit is contained in:
parent
b4631c44ad
commit
1c7936b368
@ -95,8 +95,7 @@ test_memchunk_thread (gpointer data)
|
||||
}
|
||||
|
||||
/* prepare for memchunk creation */
|
||||
memchunks = g_alloca (sizeof (memchunks[0]) * prime_size);
|
||||
memset (memchunks, 0, sizeof (memchunks[0]) * prime_size);
|
||||
memchunks = g_newa0 (GMemChunk*, prime_size);
|
||||
|
||||
ps = g_new (guint8*, number_of_blocks);
|
||||
ss = g_new (guint, number_of_blocks);
|
||||
|
Loading…
Reference in New Issue
Block a user