diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2017-04-27 13:56:33 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2017-04-27 13:56:33 (GMT) |
commit | 500fe19d36f924a6c8d95daec336ef6c937cec5c (patch) | |
tree | 67580116490e83e063a4fcc84f7fba6f59359334 | |
parent | cb12277b5f35ada54da1a2a121d553ab246e26ce (diff) | |
parent | 4fb75982b1c1f896d5d42798fb5a253ffe008166 (diff) | |
download | hdf5-500fe19d36f924a6c8d95daec336ef6c937cec5c.zip hdf5-500fe19d36f924a6c8d95daec336ef6c937cec5c.tar.gz hdf5-500fe19d36f924a6c8d95daec336ef6c937cec5c.tar.bz2 |
Merge pull request #479 in HDFFV/hdf5 from ~BYRN/hdf5_adb:hdf5_1_10 to hdf5_1_10
* commit '4fb75982b1c1f896d5d42798fb5a253ffe008166':
Change position of declaration to top of block
-rw-r--r-- | src/H5Dchunk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Dchunk.c b/src/H5Dchunk.c index 4905a70..2523c5d 100644 --- a/src/H5Dchunk.c +++ b/src/H5Dchunk.c @@ -684,10 +684,11 @@ H5D__get_chunk_storage_size(H5D_t *dset, hid_t dxpl_id, const hsize_t *offset, h if( dset->shared->dcpl_cache.pline.nused > 0 ) { /* Check if the requested chunk exists in the chunk cache */ if(UINT_MAX != udata.idx_hint) { + H5D_rdcc_ent_t *ent = rdcc->slot[udata.idx_hint]; + /* Sanity checks */ HDassert(udata.idx_hint < rdcc->nslots); HDassert(rdcc->slot[udata.idx_hint]); - H5D_rdcc_ent_t *ent = rdcc->slot[udata.idx_hint]; /* If the cached chunk is dirty, it must be flushed to get accurate size */ if( ent->dirty == TRUE ) { |