[svn-r17187] The ret_value is a (H5A_t *) but FAIL was used. This typo caused a warning

from Linux gcc but resulted in error by AIX xlc compiler.

Solution:
Changed FAIL to NULL.

Tested:
Just compiling in the AIX system.
This commit is contained in:
Albert Cheng 2009-07-14 19:26:20 -05:00
parent a739b62ecc
commit d078d2c8e2

View File

@ -539,7 +539,7 @@ H5O_attr_open_by_name(const H5O_loc_t *loc, const char *name, hid_t dxpl_id)
/* Mark datatype as being on disk now */
if(H5T_set_loc(ret_value->shared->dt, loc->file, H5T_LOC_DISK) < 0)
HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, FAIL, "invalid datatype location")
HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, NULL, "invalid datatype location")
} /* end else */