summaryrefslogtreecommitdiffstats
path: root/src/H5Sselect.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2007-12-20 21:09:58 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2007-12-20 21:09:58 (GMT)
commit837780443693fc562725f57e874312120cde32d8 (patch)
tree6dd4f227df6bce6c87bce962f67e5505c44d8291 /src/H5Sselect.c
parent6878261a432d9cc8c705aa6c4f85450b29b37150 (diff)
downloadhdf5-837780443693fc562725f57e874312120cde32d8.zip
hdf5-837780443693fc562725f57e874312120cde32d8.tar.gz
hdf5-837780443693fc562725f57e874312120cde32d8.tar.bz2
[svn-r14354] Bug fix for #956 where the element coordinates went wrong for dataspace selection. Added a test
for it, too. This round of checkin isn't well tarnished yet. I'll come back to work on Jan. 8. I'll revise it then. Tested it on kagiso, smirom, linew.
Diffstat (limited to 'src/H5Sselect.c')
-rw-r--r--src/H5Sselect.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5Sselect.c b/src/H5Sselect.c
index 41b565f..09083fa 100644
--- a/src/H5Sselect.c
+++ b/src/H5Sselect.c
@@ -804,6 +804,9 @@ H5S_select_iter_init(H5S_sel_iter_t *sel_iter, const H5S_t *space, size_t elmt_s
if(sel_iter->rank>0) {
/* Point to the dataspace dimensions */
sel_iter->dims=space->extent.size;
+
+ /* Allocate space for the flags whether the dimension is flattened */
+ sel_iter->dims_flatten = (hbool_t*)H5MM_calloc(sel_iter->rank*sizeof(hbool_t));
} /* end if */
else
sel_iter->dims = NULL;