diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2015-09-22 02:11:54 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2015-09-22 02:11:54 (GMT) |
commit | af25c747adf228eacbd0625f8cd41f84cb3fbbc3 (patch) | |
tree | 3b9b221cf15e6ee39153fcfd8099b7b9568d7e18 /src/H5Sselect.c | |
parent | fb238c24a5c6679c7555c95f887b7f4a49dbb640 (diff) | |
download | hdf5-af25c747adf228eacbd0625f8cd41f84cb3fbbc3.zip hdf5-af25c747adf228eacbd0625f8cd41f84cb3fbbc3.tar.gz hdf5-af25c747adf228eacbd0625f8cd41f84cb3fbbc3.tar.bz2 |
[svn-r27851] Description:
Normalization changes that wouldn't otherwise be necessary if the VDS branch
wasn't coming in shortly.
Tested on:
MacOSX/64 10.10.5 (amazon) w/serial & parallel
(h5committest forthcoming)
Diffstat (limited to 'src/H5Sselect.c')
-rw-r--r-- | src/H5Sselect.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/H5Sselect.c b/src/H5Sselect.c index a9c0aa1..153c691 100644 --- a/src/H5Sselect.c +++ b/src/H5Sselect.c @@ -482,9 +482,14 @@ H5S_select_deserialize(H5S_t **space, const uint8_t **p) /* Decode the rank of the point selection */ UINT32DECODE(*p,rank); - if(!*space) + if(!*space) { + hsize_t dims[H5S_MAX_RANK]; + /* Patch the rank of the allocated dataspace */ - tmp_space->extent.rank = rank; + (void)HDmemset(dims, 0, (size_t)rank * sizeof(dims[0])); + if(H5S_set_extent_simple(tmp_space, rank, dims, NULL) < 0) + HGOTO_ERROR(H5E_DATASPACE, H5E_CANTINIT, FAIL, "can't set dimensions") + } /* end if */ else /* Verify the rank of the provided dataspace */ if(rank != tmp_space->extent.rank) |