summaryrefslogtreecommitdiffstats
path: root/test/dangle.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-09-21 17:17:19 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-09-21 17:17:19 (GMT)
commitd8aa6761758bcaf29486b4ece50ebb761ca11c8e (patch)
tree21a2408718692aedfcc87569a0ca69aabe2792df /test/dangle.c
parent2862c93a2bd863a44ffe4e9664905090bc58f9ed (diff)
parentf03758613a6ec83e5ddd664590d162ccc888f13e (diff)
downloadhdf5-d8aa6761758bcaf29486b4ece50ebb761ca11c8e.zip
hdf5-d8aa6761758bcaf29486b4ece50ebb761ca11c8e.tar.gz
hdf5-d8aa6761758bcaf29486b4ece50ebb761ca11c8e.tar.bz2
Merging in latest from upstream (HDFFV/hdf5:refs/heads/develop)
* commit 'f03758613a6ec83e5ddd664590d162ccc888f13e': Snapshot version 1.11 release 2. Normalization with vol_integration (test code and H5Xtest.c)
Diffstat (limited to 'test/dangle.c')
-rw-r--r--test/dangle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/dangle.c b/test/dangle.c
index 75e9c84..9f30f10 100644
--- a/test/dangle.c
+++ b/test/dangle.c
@@ -602,7 +602,8 @@ test_dangle_force(void)
TEST_ERROR;
/* Allocate the array of object IDs */
- objs = (hid_t*)HDmalloc(sizeof(hid_t) * (size_t)count);
+ if(NULL == (objs = (hid_t *)HDcalloc((size_t)count, sizeof(hid_t))))
+ TEST_ERROR;
/* Get the list of open IDs */
if(H5Fget_obj_ids((hid_t)H5F_OBJ_ALL, H5F_OBJ_ALL, (size_t)count, objs) < 0)