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/H5Sall.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/H5Sall.c')
-rw-r--r-- | src/H5Sall.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5Sall.c b/src/H5Sall.c index f03dbcd..fac8d96 100644 --- a/src/H5Sall.c +++ b/src/H5Sall.c @@ -708,6 +708,10 @@ H5S_select_all (H5S_t *space, unsigned rel_prev) /* Check args */ assert(space); + + /* Not valid for H5S_NULL dataspace */ + if (space->extent.type == H5S_NULL) + HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a valid data space"); /* Remove current selection first */ if(rel_prev) @@ -763,6 +767,7 @@ herr_t H5Sselect_all (hid_t spaceid) if (NULL == (space=H5I_object_verify(spaceid, H5I_DATASPACE))) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a data space"); + /* Not valid for H5S_NULL dataspace */ if (space->extent.type == H5S_NULL) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a valid data space"); |