summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2015-09-08 20:41:38 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2015-09-08 20:41:38 (GMT)
commitf3da95644105e1a70f7b5246128ff542585695e5 (patch)
tree00daab220966ff82163e957a5003a78bbeb8ec9f
parentdceb3f1818e6884f0af429aa44862c169933a8e9 (diff)
downloadhdf5-f3da95644105e1a70f7b5246128ff542585695e5.zip
hdf5-f3da95644105e1a70f7b5246128ff542585695e5.tar.gz
hdf5-f3da95644105e1a70f7b5246128ff542585695e5.tar.bz2
[svn-r27701] RM offset initialization that is no longer necessary with the recent fix to
H5Screate(). Tested: ummon
-rw-r--r--src/H5Shyper.c4
-rw-r--r--src/H5Sselect.c4
2 files changed, 0 insertions, 8 deletions
diff --git a/src/H5Shyper.c b/src/H5Shyper.c
index 2215e7a..70c9b67 100644
--- a/src/H5Shyper.c
+++ b/src/H5Shyper.c
@@ -10231,10 +10231,6 @@ H5S_hyper_get_unlim_block(const H5S_t *space, hsize_t block_index)
if(H5S_extent_copy_real(&space_out->extent, &space->extent, TRUE) < 0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTCOPY, NULL, "unable to copy destination space extent")
- /* Set offset to zeros */
- (void)HDmemset(space_out->select.offset, 0, (size_t)space_out->extent.rank * sizeof(space_out->select.offset[0]));
- space_out->select.offset_changed = FALSE;
-
/* Select block as defined by start/stride/count/block computed above */
if(H5S_select_hyperslab(space_out, H5S_SELECT_SET, start, stride, count, block) < 0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTINIT, NULL, "can't select hyperslab")
diff --git a/src/H5Sselect.c b/src/H5Sselect.c
index 3a1c6c9..6b0ca6e 100644
--- a/src/H5Sselect.c
+++ b/src/H5Sselect.c
@@ -2258,10 +2258,6 @@ H5S_select_project_intersection(const H5S_t *src_space, const H5S_t *dst_space,
if(H5S_extent_copy_real(&new_space->extent, &dst_space->extent, TRUE) < 0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTCOPY, FAIL, "unable to copy destination space extent")
- /* Set offset to zeros */
- (void)HDmemset(new_space->select.offset, 0, (size_t)new_space->extent.rank * sizeof(new_space->select.offset[0]));
- new_space->select.offset_changed = FALSE;
-
/* If the intersecting space is "all", the intersection must be equal to the
* source space and the projection must be equal to the destination space */
if(src_intersect_space->select.type->type == H5S_SEL_ALL) {