summaryrefslogtreecommitdiffstats
path: root/src/H5HG.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-06-09 19:55:47 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-06-09 19:55:47 (GMT)
commit29f91cd95d7ab067e46cad06d4cf48b03aabc834 (patch)
treec419d1f84da3ca209a33aac100fa663a43e71a6c /src/H5HG.c
parent751964fbe1cde94853fe5d39aaa1b7f86ac3e132 (diff)
downloadhdf5-29f91cd95d7ab067e46cad06d4cf48b03aabc834.zip
hdf5-29f91cd95d7ab067e46cad06d4cf48b03aabc834.tar.gz
hdf5-29f91cd95d7ab067e46cad06d4cf48b03aabc834.tar.bz2
[svn-r8639] Purpose:
Code optimization Description: Call malloc() instead of calloc() for data structure that we completely initialize. Platforms tested: Solaris 2.7 (arabica) FreeBSD 4.10 (sleipnir) w/parallel
Diffstat (limited to 'src/H5HG.c')
-rw-r--r--src/H5HG.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5HG.c b/src/H5HG.c
index 55f611f..caf3deb 100644
--- a/src/H5HG.c
+++ b/src/H5HG.c
@@ -188,7 +188,7 @@ H5HG_create (H5F_t *f, hid_t dxpl_id, size_t size)
H5_CHECK_OVERFLOW(size,size_t,hsize_t);
if (HADDR_UNDEF==(addr=H5MF_alloc(f, H5FD_MEM_GHEAP, dxpl_id, (hsize_t)size)))
HGOTO_ERROR (H5E_HEAP, H5E_CANTINIT, NULL, "unable to allocate file space for global heap");
- if (NULL==(heap = H5FL_CALLOC (H5HG_heap_t)))
+ if (NULL==(heap = H5FL_MALLOC (H5HG_heap_t)))
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
heap->addr = addr;
heap->size = size;