mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-05 08:56:16 +01:00
GArray: initialize the clear_func pointer
https://bugzilla.gnome.org/show_bug.cgi?id=668650
This commit is contained in:
parent
73f5764fcd
commit
ca949756de
@ -201,6 +201,7 @@ GArray* g_array_sized_new (gboolean zero_terminated,
|
||||
array->clear = (clear ? 1 : 0);
|
||||
array->elt_size = elt_size;
|
||||
array->ref_count = 1;
|
||||
array->clear_func = NULL;
|
||||
|
||||
if (array->zero_terminated || reserved_size != 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user