commit | cce0bb8ff8a4922da4318a3654f68cfabb4c3ec8 | [log] [tgz] |
---|---|---|
author | Nick Alcock <nick.alcock@oracle.com> | Mon Mar 13 17:32:53 2023 +0000 |
committer | Nick Alcock <nick.alcock@oracle.com> | Fri Mar 24 13:37:32 2023 +0000 |
tree | 50d669a4370fded21ddefcfb19370377890c6640 | |
parent | ca96e367f057c068fb9f016dd7beba55d5d29d81 [diff] |
libctf: work around an uninitialized variable warning GCC 11+ complains that sym is uninitialized in ctf_symbol_next. It isn't, but it's not quite smart enough to figure that out (it requires domain-specific knowledge of the state of the ctf_next_t iterator over multiple calls). libctf/ * ctf-lookup.c (ctf_symbol_next): Initialize sym to a suitable value for returning if never reset during the function.