diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2018-09-20 17:40:51 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2018-09-20 17:40:51 (GMT) |
commit | 67a126c7ba8825ffb193c930c7b8cae939b3446d (patch) | |
tree | eca9e38529355d2ec2a9c5fd934e7a9d9e4821b7 /test/dangle.c | |
parent | 99299e195b5294549b75b28321ae7f8d2c6f8644 (diff) | |
download | hdf5-67a126c7ba8825ffb193c930c7b8cae939b3446d.zip hdf5-67a126c7ba8825ffb193c930c7b8cae939b3446d.tar.gz hdf5-67a126c7ba8825ffb193c930c7b8cae939b3446d.tar.bz2 |
Normalization with vol_integration (test code and H5Xtest.c)
Diffstat (limited to 'test/dangle.c')
-rw-r--r-- | test/dangle.c | 3 |
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) |