diff options
Diffstat (limited to 'src/H5FDsec2.c')
-rw-r--r-- | src/H5FDsec2.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5FDsec2.c b/src/H5FDsec2.c index a638381..ea963e7 100644 --- a/src/H5FDsec2.c +++ b/src/H5FDsec2.c @@ -235,8 +235,10 @@ H5Pset_fapl_sec2(hid_t fapl_id) FUNC_ENTER(H5Pset_fapl_sec2, FAIL); H5TRACE1("e","i",fapl_id); - if (H5P_FILE_ACCESS!=H5Pget_class(fapl_id)) - HRETURN_ERROR(H5E_PLIST, H5E_BADTYPE, FAIL, "not a fapl"); + if(H5I_GENPROP_LST != H5I_get_type(fapl_id) || + TRUE != H5Pisa_class(fapl_id, H5P_FILE_ACCESS)) + HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, + "not a file access property list"); ret_value= H5Pset_driver(fapl_id, H5FD_SEC2, NULL); |