Commit ca949756 authored by Guillaume Desmottes's avatar Guillaume Desmottes

GArray: initialize the clear_func pointer

https://bugzilla.gnome.org/show_bug.cgi?id=668650
parent 73f5764f
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment