diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2004-04-06 20:08:20 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2004-04-06 20:08:20 (GMT) |
commit | be7efff2b77fad3710f1d9b1e801d7a89d4134d5 (patch) | |
tree | 80f141bb5c0456dffe08557a2faa9d3b2e3b027a /src/H5Snone.c | |
parent | b230f3eb22e16932dc664970ade0021831e2fc5f (diff) | |
download | hdf5-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.c | 4 |
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 */ |