GArray: initialize the clear_func pointer

https://bugzilla.gnome.org/show_bug.cgi?id=668650
This commit is contained in:
Guillaume Desmottes 2012-01-25 12:03:14 +01:00
parent 73f5764fcd
commit ca949756de

View File

@ -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)
{