diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2004-03-24 21:03:52 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2004-03-24 21:03:52 (GMT) |
commit | 370a4f930f5a4af3f5866b231b5b799db4506250 (patch) | |
tree | 222c3552e300668d5e7eb9a9a5d00b267776e96d /src/H5Sall.c | |
parent | 7d709797fc7625e646f05702ced307d2ca81a63f (diff) | |
download | hdf5-370a4f930f5a4af3f5866b231b5b799db4506250.zip hdf5-370a4f930f5a4af3f5866b231b5b799db4506250.tar.gz hdf5-370a4f930f5a4af3f5866b231b5b799db4506250.tar.bz2 |
[svn-r8276] *** empty log message ***
Diffstat (limited to 'src/H5Sall.c')
-rw-r--r-- | src/H5Sall.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5Sall.c b/src/H5Sall.c index 4dfcc70..f03dbcd 100644 --- a/src/H5Sall.c +++ b/src/H5Sall.c @@ -763,6 +763,9 @@ 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"); + if (space->extent.type == H5S_NULL) + HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a valid data space"); + /* Call internal routine to do the work */ if((ret_value=H5S_select_all(space,1))<0) HGOTO_ERROR(H5E_DATASPACE, H5E_CANTDELETE, FAIL, "can't change selection"); |