summaryrefslogtreecommitdiffstats
path: root/src/H5Snone.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2004-04-06 20:08:20 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2004-04-06 20:08:20 (GMT)
commitbe7efff2b77fad3710f1d9b1e801d7a89d4134d5 (patch)
tree80f141bb5c0456dffe08557a2faa9d3b2e3b027a /src/H5Snone.c
parentb230f3eb22e16932dc664970ade0021831e2fc5f (diff)
downloadhdf5-be7efff2b77fad3710f1d9b1e801d7a89d4134d5.zip
hdf5-be7efff2b77fad3710f1d9b1e801d7a89d4134d5.tar.gz
hdf5-be7efff2b77fad3710f1d9b1e801d7a89d4134d5.tar.bz2
[svn-r8314] Purpose: Progressive check-in
Description: NULL dataspace. This step is mainly for dataspace header message and a test. Solution: The test mainly checks NULL dataspace features. Backward compatibility is tested in the fill value test. Platforms tested: h5committest
Diffstat (limited to 'src/H5Snone.c')
-rw-r--r--src/H5Snone.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Snone.c b/src/H5Snone.c
index e07f5ae..f91ef2f 100644
--- a/src/H5Snone.c
+++ b/src/H5Snone.c
@@ -665,8 +665,8 @@ herr_t H5S_select_none (H5S_t *space)
/* Check args */
assert(space);
- /* Remove current selection first */
- if((*space->select.release)(space)<0)
+ /* Remove current selection first. NULL data space either has no selection or selection is none. */
+ if((space->extent.type != H5S_NULL) && (*space->select.release)(space)<0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTDELETE, FAIL, "can't release hyperslab");
/* Set selection type */