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:
Nick Alcock 2021-01-28 15:00:11 +00:00
parent caa170493e
commit 5dacd11ddc
2 changed files with 4 additions and 1 deletions

View file

@ -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)
{