summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-07-17 17:27:37 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-07-17 17:27:37 (GMT)
commit4be014fc14ff9d311fdfb0417d8f3e738f03a88a (patch)
tree18b0d8882cbbb1d9758944b53a1140beabe77709
parentceba60418cdeb53eae7d953ec6fc9cc1f58efff1 (diff)
downloadhdf5-4be014fc14ff9d311fdfb0417d8f3e738f03a88a.zip
hdf5-4be014fc14ff9d311fdfb0417d8f3e738f03a88a.tar.gz
hdf5-4be014fc14ff9d311fdfb0417d8f3e738f03a88a.tar.bz2
[svn-r5809] Purpose:
Bug fix Description: Deleting objects from a global heap was incorrectly setting the free space in the heap chunk. Solution: Encode correct amount of free space. Platforms tested: IRIX64 6.5 (modi4)
-rw-r--r--src/H5HG.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5HG.c b/src/H5HG.c
index bd74185..34ed1cf 100644
--- a/src/H5HG.c
+++ b/src/H5HG.c
@@ -881,7 +881,7 @@ H5HG_remove (H5F_t *f, H5HG_t *hobj)
UINT16ENCODE(p, 0); /*id*/
UINT16ENCODE(p, 0); /*nrefs*/
UINT32ENCODE(p, 0); /*reserved*/
- H5F_ENCODE_LENGTH (f, p, need);
+ H5F_ENCODE_LENGTH (f, p, heap->obj[0].size);
}
HDmemset (heap->obj+hobj->idx, 0, sizeof(H5HG_obj_t));
heap->dirty = 1;