mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[svn-r25721] The return type of H5A_create was changed from hid_t to H5A_t *
but the test was not changed (still doing H5A_create(...) < 0). Fixed the error by changing to compare against NULL. Tested: ADA AIX machine where the old code was flagged as an error by the AIX compiler.
This commit is contained in:
parent
2a668bd0fc
commit
b6e694cb32
@ -186,7 +186,7 @@ H5Acreate1(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id,
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataspace")
|
||||
|
||||
/* Go do the real work for attaching the attribute to the dataset */
|
||||
if((attr = H5A_create(&loc, name, type, space, plist_id, H5AC_dxpl_id)) < 0)
|
||||
if(NULL==(attr = H5A_create(&loc, name, type, space, plist_id, H5AC_dxpl_id)))
|
||||
HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, FAIL, "unable to create attribute")
|
||||
|
||||
/* Register the new attribute and get an ID for it */
|
||||
|
Loading…
Reference in New Issue
Block a user