summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2011-04-11 15:59:41 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2011-04-11 15:59:41 (GMT)
commita67dbbaf810f44b7b05a72fa38fa1da621651896 (patch)
treeb73ce8a66ddf048d9d14247525e860ea77e9ff59 /src
parent338beff4e4744011d703c4ffecb58f2c2a34b292 (diff)
downloadhdf5-a67dbbaf810f44b7b05a72fa38fa1da621651896.zip
hdf5-a67dbbaf810f44b7b05a72fa38fa1da621651896.tar.gz
hdf5-a67dbbaf810f44b7b05a72fa38fa1da621651896.tar.bz2
[svn-r20469] Bug 1386 - allow dimension size to be zero even though it isn't unlimited. This is a follow-up checkin for r20440:
1. I added a test case of extending dataset of zero dimension size and shrinking back to zero dimension size. 2. I updated the Makefile to include the new data file to be cleaned up. Tested on jam - relatively simple.
Diffstat (limited to 'src')
-rw-r--r--src/H5Oefl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/H5Oefl.c b/src/H5Oefl.c
index 0d71be9..b97138f 100644
--- a/src/H5Oefl.c
+++ b/src/H5Oefl.c
@@ -81,6 +81,11 @@ const H5O_msg_class_t H5O_MSG_EFL[1] = {{
* Programmer: Robb Matzke
* Tuesday, November 25, 1997
*
+ * Modification:
+ * Raymond Lu
+ * 11 April 2011
+ * We allow zero dimension size starting from the 1.8.7 release.
+ * The dataset size of external storage can be zero.
*-------------------------------------------------------------------------
*/
static void *
@@ -156,7 +161,6 @@ H5O_efl_decode(H5F_t *f, hid_t dxpl_id, H5O_t UNUSED *open_oh,
/* Size */
H5F_DECODE_LENGTH (f, p, mesg->slot[u].size);
- HDassert(mesg->slot[u].size > 0);
} /* end for */
if(H5HL_unprotect(heap) < 0)