summaryrefslogtreecommitdiffstats
path: root/src/H5Dselect.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-07-09 08:41:10 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-07-09 08:41:10 (GMT)
commit30c756decb6101704a925443d623301656ba60e4 (patch)
treecf0cbe4660fec482bdf6b8c9d92d23be67fb59c9 /src/H5Dselect.c
parent205fb7c915f9327175f31cd0f66b623183af3c87 (diff)
downloadhdf5-30c756decb6101704a925443d623301656ba60e4.zip
hdf5-30c756decb6101704a925443d623301656ba60e4.tar.gz
hdf5-30c756decb6101704a925443d623301656ba60e4.tar.bz2
Misc normalizations with develop.
Diffstat (limited to 'src/H5Dselect.c')
-rw-r--r--src/H5Dselect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5Dselect.c b/src/H5Dselect.c
index 0ec3423..8b84c3e 100644
--- a/src/H5Dselect.c
+++ b/src/H5Dselect.c
@@ -11,7 +11,7 @@
* help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-/* Programmer: Quincey Koziol <koziol@ncsa.uiuc.ued>
+/* Programmer: Quincey Koziol
* Thursday, September 30, 2004
*
* Purpose: Dataspace I/O functions.
@@ -227,6 +227,8 @@ H5D__select_io(const H5D_io_info_t *io_info, size_t elmt_size,
/* Decrement number of elements left to process */
HDassert(((size_t)tmp_file_len % elmt_size) == 0);
+ if(elmt_size == 0)
+ HGOTO_ERROR(H5E_DATASPACE, H5E_BADVALUE, FAIL, "Resulted in division by zero")
nelmts -= ((size_t)tmp_file_len / elmt_size);
} /* end while */
} /* end else */