GArray: initialize the clear_func pointer
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 25 Jan 2012 11:03:14 +0000 (12:03 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 25 Jan 2012 11:04:12 +0000 (12:04 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=668650

glib/garray.c

index 5cd002a..e6894a6 100644 (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)
     {