summaryrefslogtreecommitdiffstats
path: root/src/H5Pdcpl.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-06-12 03:40:34 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-06-12 03:40:34 (GMT)
commitb8632ce735eeae4d65fa27866155a26d19c7e035 (patch)
tree0b7638300e8feabd1257cd001822a4477d529256 /src/H5Pdcpl.c
parentc0f9f41be8d453550694103a69cf902de79b6b84 (diff)
downloadhdf5-b8632ce735eeae4d65fa27866155a26d19c7e035.zip
hdf5-b8632ce735eeae4d65fa27866155a26d19c7e035.tar.gz
hdf5-b8632ce735eeae4d65fa27866155a26d19c7e035.tar.bz2
[svn-r7029] Purpose:
New feature/Bug fix Description: Add new fill time value - H5D_FILL_TIME_IFSET which writes the fill value to a dataset if the user has defined one, otherwise not writing the fill value to the dataset. Platforms tested: FreeBSD 4.8 (sleipnir) serial & parallel h5committest
Diffstat (limited to 'src/H5Pdcpl.c')
-rw-r--r--src/H5Pdcpl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5Pdcpl.c b/src/H5Pdcpl.c
index 2c9a377..7da0afc 100644
--- a/src/H5Pdcpl.c
+++ b/src/H5Pdcpl.c
@@ -1532,6 +1532,10 @@ H5Pset_fill_time(hid_t plist_id, H5D_fill_time_t fill_time)
FUNC_ENTER_API(H5Pset_fill_time, FAIL);
H5TRACE2("e","iDf",plist_id,fill_time);
+ /* Check arguments */
+ if(fill_time<H5D_FILL_TIME_ALLOC || fill_time>H5D_FILL_TIME_IFSET)
+ HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "invalid fill time setting");
+
/* Get the property list structure */
if(NULL == (plist = H5P_object_verify(plist_id,H5P_DATASET_CREATE)))
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID");