summaryrefslogtreecommitdiffstats
path: root/src/H5Dio.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-06-10 21:34:57 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-06-10 21:34:57 (GMT)
commitae64ed8364f9bfa03dc85b4e108e000902e88fac (patch)
tree75fa4b125d03aeff4e81d7231aede02f15679f08 /src/H5Dio.c
parent8b82f6d9f0100e07bd4eb1267404135c7f0515d1 (diff)
downloadhdf5-ae64ed8364f9bfa03dc85b4e108e000902e88fac.zip
hdf5-ae64ed8364f9bfa03dc85b4e108e000902e88fac.tar.gz
hdf5-ae64ed8364f9bfa03dc85b4e108e000902e88fac.tar.bz2
[svn-r8651] Purpose:
Code optimization Description: Eliminate redundant memset() when creating chunk map structure. Platforms tested: Solaris 2.7 (arabica) FreeBSD 4.10 (sleipnir) w/parallel
Diffstat (limited to 'src/H5Dio.c')
-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.
*/