summaryrefslogtreecommitdiffstats
path: root/src/H5Cquery.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2018-10-27 07:21:48 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2018-10-27 07:21:48 (GMT)
commit9c7b96b42fa8f2a0f02c7ba72173c09424d740c3 (patch)
tree7545157ac3fd8b8a88a0d543bef59f75455c71d1 /src/H5Cquery.c
parent43ffc1deb5f0a5e1defe38870eccb068e61d87c4 (diff)
downloadhdf5-9c7b96b42fa8f2a0f02c7ba72173c09424d740c3.zip
hdf5-9c7b96b42fa8f2a0f02c7ba72173c09424d740c3.tar.gz
hdf5-9c7b96b42fa8f2a0f02c7ba72173c09424d740c3.tar.bz2
Move (final?) file operation from directly calling into library code to using
the file_optional VOL callback.
Diffstat (limited to 'src/H5Cquery.c')
-rw-r--r--src/H5Cquery.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5Cquery.c b/src/H5Cquery.c
index 6c927b0..e4f3133 100644
--- a/src/H5Cquery.c
+++ b/src/H5Cquery.c
@@ -472,11 +472,11 @@ H5C_get_mdc_image_info(H5C_t * cache_ptr, haddr_t *image_addr, hsize_t *image_le
if((cache_ptr == NULL) || (cache_ptr->magic != H5C__H5C_T_MAGIC))
HGOTO_ERROR(H5E_CACHE, H5E_BADVALUE, FAIL, "bad cache_ptr on entry")
- if(image_addr == NULL || image_len == NULL)
- HGOTO_ERROR(H5E_CACHE, H5E_BADVALUE, FAIL, "bad image_addr or image_len on entry")
- *image_addr = cache_ptr->image_addr;
- *image_len = cache_ptr->image_len;
+ if(image_addr)
+ *image_addr = cache_ptr->image_addr;
+ if(image_len)
+ *image_len = cache_ptr->image_len;
done:
FUNC_LEAVE_NOAPI(ret_value)