diff options
Diffstat (limited to 'src/H5Sselect.c')
-rw-r--r-- | src/H5Sselect.c | 10 |
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; |