summaryrefslogtreecommitdiffstats
path: root/src/H5Pfapl.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@hdfgroup.org>2014-11-18 17:57:48 (GMT)
committerVailin Choi <vchoi@hdfgroup.org>2014-11-18 17:57:48 (GMT)
commit4ddc3c769e595ded8b70cc843a79e5ab37ba60e7 (patch)
tree4d686637dd3e18b4be0e9b5ea45c993569f3b878 /src/H5Pfapl.c
parent5cf77a2a7bfd44127db4c3b5d2b760666b2887a1 (diff)
downloadhdf5-4ddc3c769e595ded8b70cc843a79e5ab37ba60e7.zip
hdf5-4ddc3c769e595ded8b70cc843a79e5ab37ba60e7.tar.gz
hdf5-4ddc3c769e595ded8b70cc843a79e5ab37ba60e7.tar.bz2
[svn-r25823] Bring revisions #25484 - 25508 from trunk to revise_chunks.
h5committested.
Diffstat (limited to 'src/H5Pfapl.c')
-rw-r--r--src/H5Pfapl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5Pfapl.c b/src/H5Pfapl.c
index 83e0a0f..089bfb9 100644
--- a/src/H5Pfapl.c
+++ b/src/H5Pfapl.c
@@ -3025,6 +3025,10 @@ H5Pset_core_write_tracking(hid_t plist_id, hbool_t is_enabled, size_t page_size)
FUNC_ENTER_API(FAIL)
H5TRACE3("e", "ibz", plist_id, is_enabled, page_size);
+ /* The page size cannot be zero */
+ if(page_size == 0)
+ HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "page_size cannot be zero")
+
/* Get the plist structure */
if(NULL == (plist = H5P_object_verify(plist_id, H5P_FILE_ACCESS)))
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID")