summaryrefslogtreecommitdiffstats
path: root/src/H5Sselect.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2015-03-31 20:20:10 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2015-03-31 20:20:10 (GMT)
commit95983cbdfe74dc991c190cb04e2ff76202cac31c (patch)
tree0c3003f7e96082c196266e0b039450e20c4e317a /src/H5Sselect.c
parent904c84b2a2590124713f4187a074c8d89c79b2c1 (diff)
downloadhdf5-95983cbdfe74dc991c190cb04e2ff76202cac31c.zip
hdf5-95983cbdfe74dc991c190cb04e2ff76202cac31c.tar.gz
hdf5-95983cbdfe74dc991c190cb04e2ff76202cac31c.tar.bz2
[svn-r26680] Implement minor suggestions from 3/26/15 code review.
Note make check still fails in h5dump test (unrelated to this checkin). Tested: ummon
Diffstat (limited to 'src/H5Sselect.c')
-rw-r--r--src/H5Sselect.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/H5Sselect.c b/src/H5Sselect.c
index ed384e5..b62186b 100644
--- a/src/H5Sselect.c
+++ b/src/H5Sselect.c
@@ -2128,7 +2128,6 @@ H5S_select_project_intersection(const H5S_t *src_space, const H5S_t *dst_space,
const H5S_t *src_intersect_space, H5S_t **new_space_ptr)
{
H5S_t *new_space = NULL; /* New dataspace constructed */
- unsigned i;
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_NOAPI(FAIL)
@@ -2146,8 +2145,7 @@ H5S_select_project_intersection(const H5S_t *src_space, const H5S_t *dst_space,
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTCOPY, FAIL, "unable to copy destination space extent")
/* Set offset to zeros */
- for(i = 0; i < new_space->extent.rank; i++)
- new_space->select.offset[i] = 0;
+ (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