diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-01-10 21:12:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-10 21:12:37 (GMT) |
commit | b9e83d33d11be1fa98e0e674021b931fff295a90 (patch) | |
tree | 3be4c54a64ef75f9c7aea26fb601de83d0143b71 | |
parent | b7324009e48ec280791681514e0f017170049510 (diff) | |
download | hdf5-b9e83d33d11be1fa98e0e674021b931fff295a90.zip hdf5-b9e83d33d11be1fa98e0e674021b931fff295a90.tar.gz hdf5-b9e83d33d11be1fa98e0e674021b931fff295a90.tar.bz2 |
Fixes inappropriate error values in some H5Aint.c functions (#2401)
-rw-r--r-- | src/H5Aint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Aint.c b/src/H5Aint.c index 694b17c..079477e 100644 --- a/src/H5Aint.c +++ b/src/H5Aint.c @@ -746,7 +746,7 @@ H5A_get_space(H5A_t *attr) /* Copy the attribute's dataspace */ if (NULL == (ret_value = H5S_copy(attr->shared->ds, FALSE, TRUE))) - HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, H5I_INVALID_HID, "unable to copy dataspace") + HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, NULL, "unable to copy dataspace") done: FUNC_LEAVE_NOAPI(ret_value) @@ -2076,7 +2076,7 @@ H5A_attr_copy_file(const H5A_t *attr_src, H5F_t *file_dst, hbool_t *recompute_si /* Allocate background memory */ if (H5T_path_bkg(tpath_src_mem) || H5T_path_bkg(tpath_mem_dst)) { if (NULL == (bkg_buf = H5FL_BLK_CALLOC(attr_buf, buf_size))) - HGOTO_ERROR(H5E_ATTR, H5E_CANTALLOC, FAIL, "memory allocation failed") + HGOTO_ERROR(H5E_ATTR, H5E_CANTALLOC, NULL, "memory allocation failed") } /* Convert from source file to memory */ |