summaryrefslogtreecommitdiffstats
path: root/src/H5MF.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2012-08-09 01:02:02 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2012-08-09 01:02:02 (GMT)
commit4e6b652c3d0fdd94fc7f2aa588ab63cea7bcde64 (patch)
tree067a2194a69b6f5334310528b1650c131971c861 /src/H5MF.c
parent98ac51ba1c4b73081ab0a3091f3cca703426b593 (diff)
downloadhdf5-4e6b652c3d0fdd94fc7f2aa588ab63cea7bcde64.zip
hdf5-4e6b652c3d0fdd94fc7f2aa588ab63cea7bcde64.tar.gz
hdf5-4e6b652c3d0fdd94fc7f2aa588ab63cea7bcde64.tar.bz2
[svn-r22647] Description:
Bring r22646 from trunk to 1.8 branch: Changes resulting from Klocwork static analysis tool, from Mark Miller @ LLNL (miller86@llnl.gov). Tested on: Mac OS X/64 10.7.4 (amazon) w/debug, C++ & FORTRAN, using gcc 4.7.x (too minor to require h5committest)
Diffstat (limited to 'src/H5MF.c')
-rw-r--r--src/H5MF.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5MF.c b/src/H5MF.c
index 3c14027..e154889 100644
--- a/src/H5MF.c
+++ b/src/H5MF.c
@@ -238,6 +238,7 @@ H5MF_alloc_open(H5F_t *f, hid_t dxpl_id, H5FD_mem_t type)
*/
HDassert(f);
HDassert(f->shared);
+ HDassert(type != H5FD_MEM_NOLIST);
HDassert(H5F_addr_defined(f->shared->fs_addr[type]));
HDassert(f->shared->fs_state[type] == H5F_FS_STATE_CLOSED);
@@ -285,6 +286,7 @@ H5MF_alloc_create(H5F_t *f, hid_t dxpl_id, H5FD_mem_t type)
*/
HDassert(f);
HDassert(f->shared);
+ HDassert(type != H5FD_MEM_NOLIST);
HDassert(!H5F_addr_defined(f->shared->fs_addr[type]));
HDassert(f->shared->fs_state[type] == H5F_FS_STATE_CLOSED);
@@ -335,6 +337,7 @@ H5MF_alloc_start(H5F_t *f, hid_t dxpl_id, H5FD_mem_t type)
*/
HDassert(f);
HDassert(f->shared);
+ HDassert(type != H5FD_MEM_NOLIST);
/* Check if the free space manager exists already */
if(H5F_addr_defined(f->shared->fs_addr[type])) {
@@ -377,6 +380,7 @@ H5MF_alloc_close(H5F_t *f, hid_t dxpl_id, H5FD_mem_t type)
*/
HDassert(f);
HDassert(f->shared);
+ HDassert(type != H5FD_MEM_NOLIST);
HDassert(f->shared->fs_man[type]);
HDassert(f->shared->fs_state[type] != H5F_FS_STATE_CLOSED);