summaryrefslogtreecommitdiffstats
path: root/src/H5Dcontig.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2015-04-10 17:47:16 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2015-04-10 17:47:16 (GMT)
commit3b72762036c65978ef96bb1422a671dce20ba46e (patch)
tree7da68b47d261a1ea03e1536de72aeac6f7c6392b /src/H5Dcontig.c
parentb452fc97e6bc7c0a4b3d143cfef7ef10bb53b88d (diff)
downloadhdf5-3b72762036c65978ef96bb1422a671dce20ba46e.zip
hdf5-3b72762036c65978ef96bb1422a671dce20ba46e.tar.gz
hdf5-3b72762036c65978ef96bb1422a671dce20ba46e.tar.bz2
[svn-r26777] - Fix usage of the internal AC global dxpls
- allocate sieve buffer with calloc instead of malloc tested with h5committest
Diffstat (limited to 'src/H5Dcontig.c')
-rw-r--r--src/H5Dcontig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Dcontig.c b/src/H5Dcontig.c
index 8d4cd02..dc09768 100644
--- a/src/H5Dcontig.c
+++ b/src/H5Dcontig.c
@@ -675,7 +675,7 @@ H5D__contig_readvv_sieve_cb(hsize_t dst_off, hsize_t src_off, size_t len,
} /* end if */
else {
/* Allocate room for the data sieve buffer */
- if(NULL == (dset_contig->sieve_buf = H5FL_BLK_MALLOC(sieve_buf, dset_contig->sieve_buf_size)))
+ if(NULL == (dset_contig->sieve_buf = H5FL_BLK_CALLOC(sieve_buf, dset_contig->sieve_buf_size)))
HGOTO_ERROR(H5E_DATASET, H5E_CANTALLOC, FAIL, "memory allocation failed")
/* Determine the new sieve buffer size & location */
@@ -946,7 +946,7 @@ H5D__contig_writevv_sieve_cb(hsize_t dst_off, hsize_t src_off, size_t len,
} /* end if */
else {
/* Allocate room for the data sieve buffer */
- if(NULL == (dset_contig->sieve_buf = H5FL_BLK_MALLOC(sieve_buf, dset_contig->sieve_buf_size)))
+ if(NULL == (dset_contig->sieve_buf = H5FL_BLK_CALLOC(sieve_buf, dset_contig->sieve_buf_size)))
HGOTO_ERROR(H5E_DATASET, H5E_CANTALLOC, FAIL, "memory allocation failed")
#ifdef H5_CLEAR_MEMORY