summaryrefslogtreecommitdiffstats
path: root/src/H5Spoint.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2004-03-24 21:03:52 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2004-03-24 21:03:52 (GMT)
commit370a4f930f5a4af3f5866b231b5b799db4506250 (patch)
tree222c3552e300668d5e7eb9a9a5d00b267776e96d /src/H5Spoint.c
parent7d709797fc7625e646f05702ced307d2ca81a63f (diff)
downloadhdf5-370a4f930f5a4af3f5866b231b5b799db4506250.zip
hdf5-370a4f930f5a4af3f5866b231b5b799db4506250.tar.gz
hdf5-370a4f930f5a4af3f5866b231b5b799db4506250.tar.bz2
[svn-r8276] *** empty log message ***
Diffstat (limited to 'src/H5Spoint.c')
-rw-r--r--src/H5Spoint.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5Spoint.c b/src/H5Spoint.c
index 9b469c5..0200a7c 100644
--- a/src/H5Spoint.c
+++ b/src/H5Spoint.c
@@ -1285,7 +1285,9 @@ H5Sselect_elements(hid_t spaceid, H5S_seloper_t op, size_t num_elem,
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(coord==NULL || num_elem==0)
+ if (H5S_NULL==H5S_get_simple_extent_type(space))
+ HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "hyperslab doesn't support H5S_NULL space");
+ if(coord==NULL || num_elem==0)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "elements not specified");
if(!(op==H5S_SELECT_SET || op==H5S_SELECT_APPEND || op==H5S_SELECT_PREPEND))
HGOTO_ERROR(H5E_ARGS, H5E_UNSUPPORTED, FAIL, "operations other than H5S_SELECT_SET not supported currently");