[PATCH] libctf: check for problems with error returns
Nick Alcock
nick.alcock@oracle.com
Mon Mar 11 15:14:06 GMT 2024
On 9 Mar 2024, Sam James told this:
> Andreas Schwab <schwab@suse.de> writes:
>
>> On Jan 30 2024, Nick Alcock wrote:
>>
>>> diff --git a/libctf/testsuite/libctf-writable/libctf-errors.c b/libctf/testsuite/libctf-writable/libctf-errors.c
>>> index 71f8268cfad..2790b608396 100644
>>> --- a/libctf/testsuite/libctf-writable/libctf-errors.c
>>> +++ b/libctf/testsuite/libctf-writable/libctf-errors.c
>>> @@ -12,7 +12,7 @@ main (int argc, char *argv[])
>>> ctf_dict_t *fp;
>>> ctf_next_t *i = NULL;
>>> size_t boom = 0;
>>> - ctf_id_t itype, stype;
>>> + ctf_id_t itype = 0, stype = 0;
>>> ctf_encoding_t encoding = {0};
>>> ctf_membinfo_t mi;
>>> ssize_t ret;
>>
>> This silences the warnings and all dependent tests pass.
>
> I just ran into this myself today, looks like it never got committed?
Ugh sorry you're quite right! I'll rebase, retest, and push today. Mea
culpa, it got lost toward the base of the huge pile of stuff I'm working
on right now.
--
NULL && (void)
More information about the Binutils
mailing list