mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-03 04:01:22 +08:00
libctf: fix uninitialized variable in symbol serialization error handling
We declare a variable to hold errors at two scopes, and then initialize the inner one and jump to a scope where only the outer one is in scope. The consequences are minor: only the version of the error message printed in the debugging stream is impacted. libctf/ChangeLog 2021-01-27 Nick Alcock <nick.alcock@oracle.com> * ctf-create.c (ctf_serialize): Fix shadowing.
This commit is contained in:
@ -907,7 +907,6 @@ ctf_serialize (ctf_dict_t *fp)
|
||||
ctf_next_t *i = NULL;
|
||||
void *symname;
|
||||
const char **walk;
|
||||
int err;
|
||||
|
||||
if (filter_syms)
|
||||
{
|
||||
|
Reference in New Issue
Block a user