[glib] GArray: initialize the clear_func pointer



commit ca949756de4ac87815144295abeb8d37535ea314
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Jan 25 12:03:14 2012 +0100

    GArray: initialize the clear_func pointer
    
    https://bugzilla.gnome.org/show_bug.cgi?id=668650

 glib/garray.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
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)
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]