diff options
Diffstat (limited to 'src/H5FAhdr.c')
-rw-r--r-- | src/H5FAhdr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5FAhdr.c b/src/H5FAhdr.c index 150742d..e6231d4 100644 --- a/src/H5FAhdr.c +++ b/src/H5FAhdr.c @@ -167,6 +167,10 @@ HDfprintf(stderr, "%s: Called\n", FUNC); /* Check for valid parameters */ if(cparam->raw_elmt_size == 0) H5E_THROW(H5E_BADVALUE, "element size must be greater than zero") + if(cparam->max_dblk_page_nelmts_bits == 0) + H5E_THROW(H5E_BADVALUE, "max. # of elements bits must be greater than zero") + if(cparam->nelmts == 0) + H5E_THROW(H5E_BADVALUE, "# of elements must be greater than zero") } #endif /* NDEBUG */ |