[PATCH 4/5] libctf: fix uninitialized variable in symbol serialization error handling
Nick Alcock
nick.alcock@oracle.com
Fri Jan 29 19:29:12 GMT 2021
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.
---
libctf/ctf-create.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/libctf/ctf-create.c b/libctf/ctf-create.c
index cf12557b5d5..c01ab7a10e2 100644
--- a/libctf/ctf-create.c
+++ b/libctf/ctf-create.c
@@ -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)
{
--
2.30.0.252.gc27e85e57d
More information about the Binutils
mailing list