summaryrefslogtreecommitdiffstats
path: root/src/H5Dio.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-06-10 21:35:04 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-06-10 21:35:04 (GMT)
commit0e1d8e397759c9aba881958e4927b81ad1b6732f (patch)
treeff053bd6e2099d73b8a1f5f7969d26b8256c7c53 /src/H5Dio.c
parent3382eea1daf1def893bc7751e30bf08300d6315f (diff)
downloadhdf5-0e1d8e397759c9aba881958e4927b81ad1b6732f.zip
hdf5-0e1d8e397759c9aba881958e4927b81ad1b6732f.tar.gz
hdf5-0e1d8e397759c9aba881958e4927b81ad1b6732f.tar.bz2
[svn-r8652] 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 731580d..47d6bdf 100644
--- a/src/H5Dio.c
+++ b/src/H5Dio.c
@@ -2305,9 +2305,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);
@@ -2432,6 +2429,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.
*/