diff options
Diffstat (limited to 'src/H5Dint.c')
-rw-r--r-- | src/H5Dint.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/H5Dint.c b/src/H5Dint.c index dac12df..c9bf953 100644 --- a/src/H5Dint.c +++ b/src/H5Dint.c @@ -3641,7 +3641,9 @@ H5D__refresh(hid_t dset_id, H5D_t *dset, hid_t dxpl_id) FUNC_ENTER_NOAPI_NOINIT + /* Sanity check */ HDassert(dset); + HDassert(dset->shared); /* If the layout is virtual... */ if(dset->shared->layout.type == H5D_VIRTUAL) { @@ -3662,9 +3664,6 @@ H5D__refresh(hid_t dset_id, H5D_t *dset, hid_t dxpl_id) done: /* Release hold on virtual datasets' files */ if(virt_dsets_held) { - /* Sanity check */ - HDassert(dset->shared->layout.type == H5D_VIRTUAL); - /* Release the hold on source datasets' files */ if(H5D__virtual_release_source_dset_files(head) < 0) HDONE_ERROR(H5E_DATASET, H5E_CANTDEC, FAIL, "can't release VDS source files held open") |