From ca949756de4ac87815144295abeb8d37535ea314 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 25 Jan 2012 12:03:14 +0100 Subject: [PATCH] GArray: initialize the clear_func pointer https://bugzilla.gnome.org/show_bug.cgi?id=668650 --- glib/garray.c | 1 + 1 file changed, 1 insertion(+) diff --git a/glib/garray.c b/glib/garray.c index 5cd002a..e6894a6 100644 --- a/glib/garray.c +++ b/glib/garray.c @@ -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) { -- 2.7.4