summaryrefslogtreecommitdiffstats
path: root/src/H5HFcache.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2015-09-16 21:52:54 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2015-09-16 21:52:54 (GMT)
commit78848c63b7f0a3e6977ff7b34cafec50a2a25c29 (patch)
tree84b0e19c47556292a83edc3bd761fb6347710201 /src/H5HFcache.c
parent12d5f2bb3ccea7d678588258682fe62bd82051ec (diff)
downloadhdf5-78848c63b7f0a3e6977ff7b34cafec50a2a25c29.zip
hdf5-78848c63b7f0a3e6977ff7b34cafec50a2a25c29.tar.gz
hdf5-78848c63b7f0a3e6977ff7b34cafec50a2a25c29.tar.bz2
[svn-r27809] Minor warning fixes in the library.
Tested on: jam (too minor for h5committest)
Diffstat (limited to 'src/H5HFcache.c')
-rw-r--r--src/H5HFcache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5HFcache.c b/src/H5HFcache.c
index 88973a5..4f3dfc3 100644
--- a/src/H5HFcache.c
+++ b/src/H5HFcache.c
@@ -1924,7 +1924,7 @@ H5HF__cache_dblock_pre_serialize(const H5F_t *f, hid_t dxpl_id, void *_thing,
H5HF_hdr_t *hdr; /* Shared fractal heap information */
H5HF_direct_t *dblock = (H5HF_direct_t *)_thing; /* Direct block info */
H5HF_indirect_t *par_iblock; /* Parent indirect block */
- unsigned par_entry; /* Entry in parent indirect block */
+ unsigned par_entry = 0; /* Entry in parent indirect block */
void *write_buf; /* Pointer to buffer to write out */
size_t write_size; /* Size of buffer to write out */
uint8_t *image; /* Pointer into raw data buffer */
@@ -2224,6 +2224,7 @@ H5HF__cache_dblock_pre_serialize(const H5F_t *f, hid_t dxpl_id, void *_thing,
else { /* the direct block's parent is an indirect block */
/* Sanity check */
HDassert(par_iblock);
+ HDassert(par_iblock->ents);
HDassert(H5F_addr_eq(par_iblock->ents[par_entry].addr, addr));
/* Allocate 'normal' space for the direct block */