diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2010-05-17 21:08:40 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2010-05-17 21:08:40 (GMT) |
commit | ed89c3858789854bd1d1a46ebd01e42617eaa04c (patch) | |
tree | 8f086134776f874eba745d15619c5532c9e240f8 | |
parent | b2b00a7c4d9d2db90cc49522d6322ca2651c0562 (diff) | |
download | hdf5-ed89c3858789854bd1d1a46ebd01e42617eaa04c.zip hdf5-ed89c3858789854bd1d1a46ebd01e42617eaa04c.tar.gz hdf5-ed89c3858789854bd1d1a46ebd01e42617eaa04c.tar.bz2 |
[svn-r18833] 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
-rw-r--r-- | src/H5HFiblock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5HFiblock.c b/src/H5HFiblock.c index 8f2defd..33ced09 100644 --- a/src/H5HFiblock.c +++ b/src/H5HFiblock.c @@ -708,7 +708,6 @@ H5HF_man_iblock_root_halve(H5HF_indirect_t *iblock, hid_t dxpl_id) * QAK - 6/12/2006 */ /* Free previous indirect block disk space */ - old_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 */ @@ -721,6 +720,7 @@ H5HF_man_iblock_root_halve(H5HF_indirect_t *iblock, hid_t dxpl_id) /* Compute size of buffer needed for new indirect block */ old_nrows = iblock->nrows; iblock->nrows = new_nrows; + old_size = iblock->size; iblock->size = H5HF_MAN_INDIRECT_SIZE(hdr, iblock); /* Allocate [temporary] space for the new indirect block on disk */ |