libctf: handle errors on dynhash insertion better
authorNick Alcock <nick.alcock@oracle.com>
Wed, 19 Jun 2019 11:14:16 +0000 (12:14 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 21 Jun 2019 12:04:01 +0000 (13:04 +0100)
commit24865428034f44d9fffe6b2d9a318e1bd507c63a
treed86d3a456e6ac6988c54cbb1f05e2fff0925ba52
parent890f750a3b053532a4b839a2dd6243076de12031
libctf: handle errors on dynhash insertion better

We were missing several cases where dynhash insertion might fail, likely
due to OOM but possibly for other reasons.  Pass the errors on.

libctf/
* ctf-create.c (ctf_dtd_insert): Pass on error returns from
ctf_dynhash_insert.
(ctf_dvd_insert): Likewise.
(ctf_add_generic): Likewise.
(ctf_add_variable): Likewise.
* ctf-impl.h: Adjust declarations.
libctf/ChangeLog
libctf/ctf-create.c
libctf/ctf-impl.h
This page took 0.026966 seconds and 4 git commands to generate.