summaryrefslogtreecommitdiffstats
path: root/src/H5Pfapl.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2014-08-08 17:24:56 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2014-08-08 17:24:56 (GMT)
commit04c57dcf33ad029040711524bb69200d3838c3ed (patch)
treee5f0c22d42edd08f276ec30a408a11eca3409995 /src/H5Pfapl.c
parente3e4c3710976810ed7a9109d9b4f9d842eca2954 (diff)
parenta794cc9103b1b8b78b9f5ed8ac72ea8dfc19835a (diff)
downloadhdf5-04c57dcf33ad029040711524bb69200d3838c3ed.zip
hdf5-04c57dcf33ad029040711524bb69200d3838c3ed.tar.gz
hdf5-04c57dcf33ad029040711524bb69200d3838c3ed.tar.bz2
[svn-r25522] merge from trunk.
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 e2f728b..c8ca821 100644
--- a/src/H5Pfapl.c
+++ b/src/H5Pfapl.c
@@ -3264,6 +3264,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")