[glib] [gbsearcharray] Use malloc() instead of realloc(NULL,...)
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Subject: [glib] [gbsearcharray] Use malloc() instead of realloc(NULL,...)
- Date: Mon, 20 Jul 2009 20:11:42 +0000 (UTC)
commit ba6be2035d9bd43b1a873492e189d0bccbd20178
Author: Behdad Esfahbod <behdad behdad org>
Date: Fri Jun 5 23:24:28 2009 -0400
[gbsearcharray] Use malloc() instead of realloc(NULL,...)
glib/gbsearcharray.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gbsearcharray.h b/glib/gbsearcharray.h
index 8e68758..1ad893c 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]