summaryrefslogtreecommitdiff
path: root/glib
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-01-25 12:03:14 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-01-25 12:04:12 +0100
commitca949756de4ac87815144295abeb8d37535ea314 (patch)
tree952b0b8d7980509f368a658a9b850c57c8a7e084 /glib
parent73f5764fcde237737a844fb3b164bcddf6c335d1 (diff)
downloadglib-ca949756de4ac87815144295abeb8d37535ea314.tar.gz
GArray: initialize the clear_func pointer
https://bugzilla.gnome.org/show_bug.cgi?id=668650
Diffstat (limited to 'glib')
-rw-r--r--glib/garray.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/glib/garray.c b/glib/garray.c
index 5cd002a6f..e6894a63a 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)
{