summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-06-11 15:03:54 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-06-11 15:03:54 (GMT)
commit22243fd75d15d40ab491e7f8ac74ad2bb8a77486 (patch)
tree959fd9ba0a3fbed7b387a98f3f8a47ddee0b2057 /src
parenteda3b5015f7e5822c72423b66861653bca1d93bc (diff)
downloadhdf5-22243fd75d15d40ab491e7f8ac74ad2bb8a77486.zip
hdf5-22243fd75d15d40ab491e7f8ac74ad2bb8a77486.tar.gz
hdf5-22243fd75d15d40ab491e7f8ac74ad2bb8a77486.tar.bz2
[svn-r17031] Description:
Correct latent bug in one file space allocation test which was not getting a new file pointer when reopening a file. Also, add a couple more asserts to the file space allocation code in the library to help detect this problem earlier. Tested on: Linux/32 2.6 (jam) w/core VFD
Diffstat (limited to 'src')
-rw-r--r--src/H5MF.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5MF.c b/src/H5MF.c
index a3769d1..2cf52b0 100644
--- a/src/H5MF.c
+++ b/src/H5MF.c
@@ -302,6 +302,8 @@ HDfprintf(stderr, "%s: alloc_type = %u, size = %Hu\n", FUNC, (unsigned)alloc_typ
/* check arguments */
HDassert(f);
+ HDassert(f->shared);
+ HDassert(f->shared->lf);
HDassert(size > 0);
/* Get free space type from allocation type */
@@ -768,6 +770,8 @@ HDfprintf(stderr, "%s: Entering - alloc_type = %u, addr = %a, size = %Hu\n", FUN
/* check arguments */
HDassert(f);
+ HDassert(f->shared);
+ HDassert(f->shared->lf);
HDassert(H5F_addr_defined(addr));
HDassert(size > 0);