From 90bf59edc59bfabb38d677dc6bddb12eb57e8b11 Mon Sep 17 00:00:00 2001 From: Dana Robinson Date: Wed, 30 Jan 2019 23:45:32 -0800 Subject: Fixed a bug revealed by the dtransform test. A datatype transform buffer needed to be calloc'd. --- src/H5Dio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v0.12