summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/H5Dio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5Dio.c b/src/H5Dio.c
index 9d8ef7d..0ab50c2 100644
--- a/src/H5Dio.c
+++ b/src/H5Dio.c
@@ -2337,9 +2337,6 @@ H5D_create_chunk_map(H5D_t *dataset, const H5T_t *mem_type, const H5S_t *file_sp
}
#endif /* QAK */
- /* Initialize fm_map structure */
- HDmemset(fm, 0, sizeof(fm_map));
-
/* Get layout for dataset */
fm->layout = &(dataset->layout);
@@ -2464,6 +2461,9 @@ H5D_create_chunk_map(H5D_t *dataset, const H5T_t *mem_type, const H5S_t *file_sp
/* Build the memory selection for each chunk */
if(fsel_type!=H5S_SEL_POINTS && H5S_select_shape_same(file_space,equiv_mspace)==TRUE) {
+ /* Reset chunk template information */
+ fm->mchunk_tmpl=NULL;
+
/* If the selections are the same shape, use the file chunk information
* to generate the memory chunk information quickly.
*/