summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2004-04-06 20:08:20 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2004-04-06 20:08:20 (GMT)
commitbe7efff2b77fad3710f1d9b1e801d7a89d4134d5 (patch)
tree80f141bb5c0456dffe08557a2faa9d3b2e3b027a /src/H5D.c
parentb230f3eb22e16932dc664970ade0021831e2fc5f (diff)
downloadhdf5-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/H5D.c')
-rw-r--r--src/H5D.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5D.c b/src/H5D.c
index fa20fd4..f77911a 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -1905,8 +1905,10 @@ H5D_create(H5G_entry_t *loc, const char *name, hid_t type_id, const H5S_t *space
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTCOPY, NULL, "can't copy dataspace")
/* Set the dataset's dataspace to 'all' selection */
- if(H5S_select_all(new_dset->space,1)<0)
- HGOTO_ERROR (H5E_DATASPACE, H5E_CANTSET, NULL, "unable to set all selection")
+ if(H5S_NULL != H5S_get_simple_extent_type(new_dset->space)) {
+ if(H5S_select_all(new_dset->space,1)<0)
+ HGOTO_ERROR (H5E_DATASPACE, H5E_CANTSET, NULL, "unable to set all selection")
+ }
/* Check if the dataset has a non-default DCPL & get important values, if so */
if(new_dset->dcpl_id!=H5P_DATASET_CREATE_DEFAULT) {