summaryrefslogtreecommitdiffstats
path: root/src/H5S.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@lbl.gov>2018-04-30 14:45:32 (GMT)
committerQuincey Koziol <koziol@lbl.gov>2018-04-30 14:45:32 (GMT)
commit1f8cb03e11a46f853881f45dac18eff2dd68401e (patch)
treee066c7165f9e5a400de3688fb1b53193da6b230f /src/H5S.c
parent5983bded19d8a33266cbce5625b72540c5208921 (diff)
parent4411bc27ac8842795c73d7a469273a8d831bb835 (diff)
downloadhdf5-1f8cb03e11a46f853881f45dac18eff2dd68401e.zip
hdf5-1f8cb03e11a46f853881f45dac18eff2dd68401e.tar.gz
hdf5-1f8cb03e11a46f853881f45dac18eff2dd68401e.tar.bz2
Merge pull request #1041 in HDFFV/hdf5 from merge_hyperslab_updates to develop
* commit '4411bc27ac8842795c73d7a469273a8d831bb835': Further minor cleanups Checkpoint normalization against incoming hyperslab / selection / dataspace improvements.
Diffstat (limited to 'src/H5S.c')
-rw-r--r--src/H5S.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/H5S.c b/src/H5S.c
index d2c5975..3d09fa0 100644
--- a/src/H5S.c
+++ b/src/H5S.c
@@ -1393,8 +1393,7 @@ H5S_set_extent_simple(H5S_t *space, unsigned rank, const hsize_t *dims,
/* Selection related cleanup */
/* Set offset to zeros */
- for(u = 0; u < space->extent.rank; u++)
- space->select.offset[u] = 0;
+ HDmemset(space->select.offset, 0, sizeof(hsize_t) * space->extent.rank);
space->select.offset_changed = FALSE;
/* If the selection is 'all', update the number of elements selected */