summaryrefslogtreecommitdiffstats
path: root/src/H5Tvlen.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-12-29 19:01:04 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-12-29 19:01:04 (GMT)
commit51984a99264fdee6bef4ec9eaa9bc065ff40c530 (patch)
treed79c277b6a187b719b15041369beec91f578f484 /src/H5Tvlen.c
parent92a75f970e7194aa6be067cdf6f11e10a296dc9c (diff)
downloadhdf5-51984a99264fdee6bef4ec9eaa9bc065ff40c530.zip
hdf5-51984a99264fdee6bef4ec9eaa9bc065ff40c530.tar.gz
hdf5-51984a99264fdee6bef4ec9eaa9bc065ff40c530.tar.bz2
[svn-r7988] Purpose:
Bug fixes & code cleanup Description: Back out some of the debugging that was inadvertently checked in recently. Platforms tested: FreeBSD 4.9 (sleipnir) too minor to require h5committest
Diffstat (limited to 'src/H5Tvlen.c')
-rw-r--r--src/H5Tvlen.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/H5Tvlen.c b/src/H5Tvlen.c
index 057a309..7663fdb 100644
--- a/src/H5Tvlen.c
+++ b/src/H5Tvlen.c
@@ -818,17 +818,15 @@ H5T_vlen_disk_write(H5F_t *f, hid_t dxpl_id, void *_vl, void *buf, void *_bg, hs
HDmemset(&bg_hobjid,0,sizeof(H5HG_t));
UINT32DECODE(bg, bg_seq_len);
- if(bg_seq_len > 0) {
- /* Get heap information */
- H5F_addr_decode(f, (const uint8_t **)&bg, &(bg_hobjid.addr));
- INT32DECODE(bg, bg_hobjid.idx);
-
- /* Free heap object for old data */
- if(bg_hobjid.addr>0) {
- /* Free heap object */
- if(H5HG_remove(f, dxpl_id, &bg_hobjid)<0)
- HGOTO_ERROR(H5E_DATATYPE, H5E_WRITEERROR, FAIL, "Unable to remove heap object")
- } /* end if */
+ /* Get heap information */
+ H5F_addr_decode(f, (const uint8_t **)&bg, &(bg_hobjid.addr));
+ INT32DECODE(bg, bg_hobjid.idx);
+
+ /* Free heap object for old data */
+ if(bg_hobjid.addr>0) {
+ /* Free heap object */
+ if(H5HG_remove(f, dxpl_id, &bg_hobjid)<0)
+ HGOTO_ERROR(H5E_DATATYPE, H5E_WRITEERROR, FAIL, "Unable to remove heap object")
} /* end if */
} /* end if */