diff options
Diffstat (limited to 'src/H5Oflush.c')
-rw-r--r-- | src/H5Oflush.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5Oflush.c b/src/H5Oflush.c index 40957ac..e9189f8 100644 --- a/src/H5Oflush.c +++ b/src/H5Oflush.c @@ -76,15 +76,15 @@ H5Oflush(hid_t obj_id) H5TRACE1("e", "i", obj_id); /* Check args */ - if((oloc = H5O_get_loc(obj_id)) == NULL) + if(NULL == (oloc = H5O_get_loc(obj_id))) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not an object") /* Get the object pointer */ - if((obj_ptr = H5I_object(obj_id)) == NULL) + if(NULL == (obj_ptr = H5I_object(obj_id))) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "invalid object identifier") /* Get the object class */ - if((obj_class = H5O_obj_class(oloc, H5AC_dxpl_id)) == NULL) + if(NULL == (obj_class = H5O_obj_class(oloc, H5AC_dxpl_id))) HGOTO_ERROR(H5E_OHDR, H5E_CANTINIT, FAIL, "unable to determine object class") /* Flush the object of this class */ |