From 9ef21822f5ec037e0dd40cf5b05762c738b8c7ad Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Mon, 17 May 2010 14:29:01 -0500 Subject: [svn-r18827] Description: Correct error where variable didn't always get initialized correctly. Tested on: Mac OS X/32 10.6.3 (amazon) w/debug & prod Windows w/debug & prod --- src/H5HFiblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/H5HFiblock.c b/src/H5HFiblock.c index 0742cfc..60f7404 100644 --- a/src/H5HFiblock.c +++ b/src/H5HFiblock.c @@ -545,13 +545,13 @@ H5HF_man_iblock_root_double(H5HF_hdr_t *hdr, hid_t dxpl_id, size_t min_dblock_si * QAK - 3/14/2006 */ /* Free previous indirect block disk space */ - old_iblock_size = iblock->size; if(H5MF_xfree(hdr->f, H5FD_MEM_FHEAP_IBLOCK, dxpl_id, iblock->addr, (hsize_t)iblock->size) < 0) HGOTO_ERROR(H5E_HEAP, H5E_CANTFREE, FAIL, "unable to free fractal heap indirect block file space") } /* end if */ /* Compute size of buffer needed for new indirect block */ iblock->nrows = new_nrows; + old_iblock_size = iblock->size; iblock->size = H5HF_MAN_INDIRECT_SIZE(hdr, iblock); /* Allocate [temporary] space for the new indirect block on disk */ -- cgit v0.12