From: Behdad Esfahbod Date: Sat, 6 Jun 2009 03:24:28 +0000 (-0400) Subject: [gbsearcharray] Use malloc() instead of realloc(NULL,...) X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=ba6be2035d9bd43b1a873492e189d0bccbd20178;p=dana%2Fcg-glib.git [gbsearcharray] Use malloc() instead of realloc(NULL,...) --- diff --git a/glib/gbsearcharray.h b/glib/gbsearcharray.h index 8e687589..1ad893c4 100644 --- a/glib/gbsearcharray.h +++ b/glib/gbsearcharray.h @@ -133,7 +133,7 @@ g_bsearch_array_create (const GBSearchConfig *bconfig) size = sizeof (GBSearchArray) + bconfig->sizeof_node; if (bconfig->flags & G_BSEARCH_ARRAY_ALIGN_POWER2) size = G_BSEARCH_UPPER_POWER2 (size); - barray = (GBSearchArray *) g_realloc (NULL, size); + barray = (GBSearchArray *) g_malloc (size); memset (barray, 0, sizeof (GBSearchArray)); return barray;