diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2019-01-31 07:45:32 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2019-01-31 07:45:32 (GMT) |
commit | 90bf59edc59bfabb38d677dc6bddb12eb57e8b11 (patch) | |
tree | 6f858eaa1d4b9ee0c2dfb32b234f44abb03b8208 | |
parent | 9149d5a5352de4e0b9a2e57c91525a6cad767760 (diff) | |
download | hdf5-90bf59edc59bfabb38d677dc6bddb12eb57e8b11.zip hdf5-90bf59edc59bfabb38d677dc6bddb12eb57e8b11.tar.gz hdf5-90bf59edc59bfabb38d677dc6bddb12eb57e8b11.tar.bz2 |
Fixed a bug revealed by the dtransform test. A datatype transform
buffer needed to be calloc'd.
-rw-r--r-- | src/H5Dio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Dio.c b/src/H5Dio.c index 607bfcf..4fdbebd 100644 --- a/src/H5Dio.c +++ b/src/H5Dio.c @@ -1040,7 +1040,7 @@ H5D__typeinfo_init(const H5D_t *dset, hid_t mem_type_id, hbool_t do_write, */ if(NULL == (type_info->tconv_buf = (uint8_t *)tconv_buf)) { /* Allocate temporary buffer */ - if(NULL == (type_info->tconv_buf = H5FL_BLK_MALLOC(type_conv, target_size))) + if(NULL == (type_info->tconv_buf = H5FL_BLK_CALLOC(type_conv, target_size))) HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed for type conversion") type_info->tconv_buf_allocated = TRUE; } /* end if */ |