summaryrefslogtreecommitdiffstats
path: root/src/H5VLcallback.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2019-11-28 04:48:01 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2019-11-28 04:48:01 (GMT)
commitece625e3b680aafb33b0ef4ec101792e20be4aac (patch)
treef3d6a34b9ad7e6cfd9e8f5e4f19ba603f927e3ad /src/H5VLcallback.c
parente23e67798ace036628f291c4f77831a895b67286 (diff)
downloadhdf5-ece625e3b680aafb33b0ef4ec101792e20be4aac.zip
hdf5-ece625e3b680aafb33b0ef4ec101792e20be4aac.tar.gz
hdf5-ece625e3b680aafb33b0ef4ec101792e20be4aac.tar.bz2
Fix bugs in H5VL file comparison code. Add short circuit success to
H5VL_cmp_connector_cls().
Diffstat (limited to 'src/H5VLcallback.c')
-rw-r--r--src/H5VLcallback.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5VLcallback.c b/src/H5VLcallback.c
index b20494a..77df207 100644
--- a/src/H5VLcallback.c
+++ b/src/H5VLcallback.c
@@ -3077,10 +3077,10 @@ H5VL__file_specific(void *obj, const H5VL_class_t *cls, H5VL_file_specific_t spe
if(H5VL__file_specific_wrap_va_list(obj, cls, specific_type, dxpl_id, req, vol_obj2->data, is_equal) < 0)
HGOTO_ERROR(H5E_VOL, H5E_CANTOPERATE, FAIL, "file specific failed")
} /* end if */
-
- /* Call the corresponding VOL callback */
- if((cls->file_cls.specific)(obj, specific_type, dxpl_id, req, arguments) < 0)
- HGOTO_ERROR(H5E_VOL, H5E_CANTOPERATE, FAIL, "file specific failed")
+ else
+ /* Call the corresponding VOL callback */
+ if((cls->file_cls.specific)(obj, specific_type, dxpl_id, req, arguments) < 0)
+ HGOTO_ERROR(H5E_VOL, H5E_CANTOPERATE, FAIL, "file specific failed")
done:
FUNC_LEAVE_NOAPI(ret_value)