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/H5Shyper.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/H5Shyper.c')
-rw-r--r-- | src/H5Shyper.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5Shyper.c b/src/H5Shyper.c index 3e2e5d4..b6b3d2f 100644 --- a/src/H5Shyper.c +++ b/src/H5Shyper.c @@ -5816,6 +5816,8 @@ H5Sselect_hyperslab(hid_t space_id, H5S_seloper_t op, const hssize_t start[], HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a data space"); if (H5S_SCALAR==H5S_get_simple_extent_type(space)) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "hyperslab doesn't support H5S_SCALAR space"); + if (H5S_NULL==H5S_get_simple_extent_type(space)) + HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "hyperslab doesn't support H5S_NULL space"); if(start==NULL || count==NULL) HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "hyperslab not specified"); if(!(op>H5S_SELECT_NOOP && op<H5S_SELECT_INVALID)) @@ -6409,6 +6411,8 @@ H5Sselect_hyperslab(hid_t space_id, H5S_seloper_t op, const hssize_t start[], HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a data space"); if (H5S_SCALAR==H5S_get_simple_extent_type(space)) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "hyperslab doesn't support H5S_SCALAR space"); + if (H5S_NULL==H5S_get_simple_extent_type(space)) + HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "hyperslab doesn't support H5S_NULL space"); if(start==NULL || count==NULL) HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "hyperslab not specified"); if(!(op>H5S_SELECT_NOOP && op<H5S_SELECT_INVALID)) |