diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-10-09 17:59:28 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-10-09 17:59:28 (GMT) |
commit | daddf169b078f2c3982af513416e7f0f9208a211 (patch) | |
tree | 0fcf0403d46599b3867cb37fabae528215b97162 /tools/lib/h5diff_attr.c | |
parent | a07d6b52fb0a231c2c6e60b1ae4d7550894c4b58 (diff) | |
download | hdf5-daddf169b078f2c3982af513416e7f0f9208a211.zip hdf5-daddf169b078f2c3982af513416e7f0f9208a211.tar.gz hdf5-daddf169b078f2c3982af513416e7f0f9208a211.tar.bz2 |
HDFFV-10297 - Fix test errors - five remaining
Diffstat (limited to 'tools/lib/h5diff_attr.c')
-rw-r--r-- | tools/lib/h5diff_attr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/h5diff_attr.c b/tools/lib/h5diff_attr.c index 74607da..9bebcbe 100644 --- a/tools/lib/h5diff_attr.c +++ b/tools/lib/h5diff_attr.c @@ -472,8 +472,8 @@ hsize_t diff_attr(hid_t loc1_id, for(j = 0; j < rank1; j++) nelmts1 *= dims1[j]; - buf1 = (void *)HDmalloc((size_t)(nelmts1 * msize1)); - buf2 = (void *)HDmalloc((size_t)(nelmts1 * msize2)); + buf1 = (void *)HDcalloc((size_t)(nelmts1), msize1); + buf2 = (void *)HDcalloc((size_t)(nelmts1), msize2); if(buf1 == NULL || buf2 == NULL) { parallel_print("cannot read into memory\n"); goto error; |