diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2017-04-27 13:55:41 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2017-04-27 13:55:41 (GMT) |
commit | c2729b6ad13170d7311848ecba2483515e113825 (patch) | |
tree | 308523476bf10dba9dcbef1540799b6f52e64227 /src | |
parent | 2d535d8c88181aeb9d778b3b13f92a8d8518586e (diff) | |
parent | a302f508a51ba9fe109aaacda24601d5c458fe8d (diff) | |
download | hdf5-c2729b6ad13170d7311848ecba2483515e113825.zip hdf5-c2729b6ad13170d7311848ecba2483515e113825.tar.gz hdf5-c2729b6ad13170d7311848ecba2483515e113825.tar.bz2 |
Merge pull request #478 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to develop
* commit 'a302f508a51ba9fe109aaacda24601d5c458fe8d':
Change position of declaration to top of block
Diffstat (limited to 'src')
-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 ) { |