summaryrefslogtreecommitdiffstats
path: root/src/H5HFiblock.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2010-05-17 21:08:22 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2010-05-17 21:08:22 (GMT)
commit8d6ec653bd08cbb8f57ee60fe4356973ebe95683 (patch)
tree9ed87eccf85b7cd5eb161489d76a38fe2c40841f /src/H5HFiblock.c
parent6413372648acaa53c88789d380df4b7d74c1af1e (diff)
downloadhdf5-8d6ec653bd08cbb8f57ee60fe4356973ebe95683.zip
hdf5-8d6ec653bd08cbb8f57ee60fe4356973ebe95683.tar.gz
hdf5-8d6ec653bd08cbb8f57ee60fe4356973ebe95683.tar.bz2
[svn-r18832] 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
Diffstat (limited to 'src/H5HFiblock.c')
-rw-r--r--src/H5HFiblock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5HFiblock.c b/src/H5HFiblock.c
index 60f7404..629ac29 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 */