diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2002-07-17 21:11:47 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2002-07-17 21:11:47 (GMT) |
commit | 814ea8b962fec329f6a440d1f52f6b682de47524 (patch) | |
tree | 45551c8d8cefb953ff3bf1be72d0f9b9094ef34e /src/H5Tvlen.c | |
parent | 33f0045d9a935fe82f07b039e0654e44b3277765 (diff) | |
download | hdf5-814ea8b962fec329f6a440d1f52f6b682de47524.zip hdf5-814ea8b962fec329f6a440d1f52f6b682de47524.tar.gz hdf5-814ea8b962fec329f6a440d1f52f6b682de47524.tar.bz2 |
[svn-r5812]
Purpose:
Bug fix.
Description:
This should fix the nested VL datatype bug.
Platforms tested:
modi4, eirene, impact
Diffstat (limited to 'src/H5Tvlen.c')
-rw-r--r-- | src/H5Tvlen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Tvlen.c b/src/H5Tvlen.c index cc38b3c..78e5b68 100644 --- a/src/H5Tvlen.c +++ b/src/H5Tvlen.c @@ -489,10 +489,11 @@ herr_t H5T_vlen_disk_write(hid_t UNUSED plist_id, H5F_t *f, void *vl_addr, void /* Get the length of the sequence and heap object ID from background data. * Free heap object for old data. */ if(bg!=NULL) { + HDmemset(&bg_hobjid,0,sizeof(H5HG_t)); UINT32DECODE(bg, bg_seq_len); /* Free heap object for old data */ - if(bg_seq_len!=0) { + if(bg_seq_len>0) { /* Get heap information */ H5F_addr_decode(f, (const uint8_t **)&bg, &(bg_hobjid.addr)); INT32DECODE(bg, bg_hobjid.idx); |