summaryrefslogtreecommitdiffstats
path: root/src/H5Dcompact.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2016-01-20 15:30:55 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2016-01-20 15:30:55 (GMT)
commitafd696593b786db4c68d7ad0235da145ba250568 (patch)
treeb5ebfef14196fa2b002b7bfea6cf24944659613d /src/H5Dcompact.c
parentf6429a3f5483100f08b40eb1d06daacc012313cb (diff)
parentb9763eee6dd6a81d2696faf430e0cf7f27281462 (diff)
downloadhdf5-afd696593b786db4c68d7ad0235da145ba250568.zip
hdf5-afd696593b786db4c68d7ad0235da145ba250568.tar.gz
hdf5-afd696593b786db4c68d7ad0235da145ba250568.tar.bz2
[svn-r28933] merge from trunk.
Diffstat (limited to 'src/H5Dcompact.c')
-rw-r--r--src/H5Dcompact.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/H5Dcompact.c b/src/H5Dcompact.c
index 59efe3d..b667345 100644
--- a/src/H5Dcompact.c
+++ b/src/H5Dcompact.c
@@ -445,12 +445,9 @@ H5D__compact_copy(H5F_t *f_src, H5O_storage_compact_t *storage_src, H5F_t *f_dst
HDassert(storage_src);
HDassert(f_dst);
HDassert(storage_dst);
+ HDassert(storage_dst->buf);
HDassert(dt_src);
- /* Allocate space for destination data */
- if(NULL == (storage_dst->buf = H5MM_malloc(storage_src->size)))
- HGOTO_ERROR(H5E_DATASET, H5E_CANTALLOC, FAIL, "unable to allocate memory for compact dataset")
-
/* Create datatype ID for src datatype, so it gets freed */
if((tid_src = H5I_register(H5I_DATATYPE, dt_src, FALSE)) < 0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTREGISTER, FAIL, "unable to register source file datatype")