summaryrefslogtreecommitdiffstats
path: root/src/H5Sselect.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-12-20 22:37:21 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-12-20 22:37:21 (GMT)
commitbffc42f6ac251d7a4d6b77721563ba2122fdddd6 (patch)
treec133f51e7ab6b01f7659e7e1d3ccd6120b5d12dc /src/H5Sselect.c
parent491971980d68bb763899d42946a63fc127f9c4cb (diff)
downloadhdf5-bffc42f6ac251d7a4d6b77721563ba2122fdddd6.zip
hdf5-bffc42f6ac251d7a4d6b77721563ba2122fdddd6.tar.gz
hdf5-bffc42f6ac251d7a4d6b77721563ba2122fdddd6.tar.bz2
[svn-r14356] Description:
Refactor work for bug #956 to simplify a bit and to cover some corner cases. Tested on: FreeBSD/32 6.2 (duty) in debug mode FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode Mac OS X/32 10.4.10 (amazon) in debug mode Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Diffstat (limited to 'src/H5Sselect.c')
-rw-r--r--src/H5Sselect.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/H5Sselect.c b/src/H5Sselect.c
index 09083fa..fa413a5 100644
--- a/src/H5Sselect.c
+++ b/src/H5Sselect.c
@@ -801,13 +801,9 @@ H5S_select_iter_init(H5S_sel_iter_t *sel_iter, const H5S_t *space, size_t elmt_s
/* Save the dataspace's rank */
sel_iter->rank=space->extent.rank;
- 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 */
+ /* Point to the dataspace dimensions, if there are any */
+ if(sel_iter->rank > 0)
+ sel_iter->dims = space->extent.size;
else
sel_iter->dims = NULL;