diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-04-23 14:57:38 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-04-23 14:57:38 (GMT) |
commit | 46cb3df9f5cd100c77f2e8a8f4bc7b7c8dafd2b0 (patch) | |
tree | f3daad690a749edde9043df76aec11f53f62f5a6 | |
parent | 813168aa4d012dd243161a7dd9084788ef2ebfcf (diff) | |
download | hdf5-46cb3df9f5cd100c77f2e8a8f4bc7b7c8dafd2b0.zip hdf5-46cb3df9f5cd100c77f2e8a8f4bc7b7c8dafd2b0.tar.gz hdf5-46cb3df9f5cd100c77f2e8a8f4bc7b7c8dafd2b0.tar.bz2 |
[svn-r6738] Purpose:
Code cleanup
Description:
Add & improve assertion that was removed in last commit, to check for
compact dataset storage.
Platforms tested:
FreeBSD 4.8 (sleipnir)
triple check not necessary.
-rw-r--r-- | src/H5D.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2757,7 +2757,8 @@ H5D_read(H5D_t *dataset, const H5T_t *mem_type, const H5S_t *mem_space, #ifdef H5S_DEBUG H5_timer_begin(&timer); #endif - /* read data from space */ + /* Sanity check that space is allocated, then read data from it */ + assert(dataset->layout.addr!=HADDR_UNDEF || dataset->efl.nused>0 || dataset->layout.type==H5D_COMPACT); n = H5S_select_fgath(dataset->ent.file, &(dataset->layout), dc_plist, &(dataset->efl), src_type_size, file_space, &file_iter, smine_nelmts, dxpl_id, tconv_buf/*out*/); |