libctf: fix uninitialized variable in symbol serialization error handling
authorNick Alcock <nick.alcock@oracle.com>
Thu, 28 Jan 2021 15:00:11 +0000 (15:00 +0000)
committerNick Alcock <nick.alcock@oracle.com>
Thu, 4 Feb 2021 16:01:53 +0000 (16:01 +0000)
commit5dacd11ddcf98c3893dfed1563feaf2a1a518389
tree974322f71cbe6deaebe47be5f71eb145bb356f50
parentcaa170493e884215af4d07ea891ed1e2eeeb0578
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.
libctf/ChangeLog
libctf/ctf-create.c