diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2021-05-11 16:05:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-11 16:05:03 (GMT) |
commit | 7d140b97fbd78d8071780e38e3e4287f6711f7f6 (patch) | |
tree | 919d01a7fea79441cc40b38ea616b8c51e200f4d /src/H5Gstab.c | |
parent | 9023e98940d959aa974e655cc383fab0b0ed663c (diff) | |
download | hdf5-7d140b97fbd78d8071780e38e3e4287f6711f7f6.zip hdf5-7d140b97fbd78d8071780e38e3e4287f6711f7f6.tar.gz hdf5-7d140b97fbd78d8071780e38e3e4287f6711f7f6.tar.bz2 |
Purges UFAIL from the library (#637)
* Committing clang-format changes
* Purges UFAIL from the library
* H5HL_insert change requested in PR
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/H5Gstab.c')
-rw-r--r-- | src/H5Gstab.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/H5Gstab.c b/src/H5Gstab.c index 34f9610..bf4b417 100644 --- a/src/H5Gstab.c +++ b/src/H5Gstab.c @@ -150,11 +150,10 @@ H5G__stab_create_components(H5F_t *f, H5O_stab_t *stab, size_t size_hint) HGOTO_ERROR(H5E_SYM, H5E_PROTECT, FAIL, "unable to protect symbol table heap") /* Insert name into the heap */ - if (UFAIL == (name_offset = H5HL_insert(f, heap, (size_t)1, ""))) + if (H5HL_insert(f, heap, (size_t)1, "", &name_offset) < 0) HGOTO_ERROR(H5E_SYM, H5E_CANTINSERT, FAIL, "can't insert name into heap") - /* - * B-tree's won't work if the first name isn't at the beginning + /* B-trees won't work if the first name isn't at the beginning * of the heap. */ HDassert(0 == name_offset); |