mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-19 01:19:41 +08:00
libctf: fix uninitialized variables in testsuite
Just because a path is an error path doesn't mean the program terminates there if you don't ask it to. And we don't want to -- but that means we need to initialize the variables that are missed if an error happens to *something*. Type ID 0 (unimplemented) will do: it'll induce further ECTF_BADID errors, but that's no bad thing. libctf/ChangeLog: * testsuite/libctf-writable/libctf-errors.c: Initialize variables.
This commit is contained in:
@@ -12,7 +12,7 @@ main (int argc, char *argv[])
|
|||||||
ctf_dict_t *fp;
|
ctf_dict_t *fp;
|
||||||
ctf_next_t *i = NULL;
|
ctf_next_t *i = NULL;
|
||||||
size_t boom = 0;
|
size_t boom = 0;
|
||||||
ctf_id_t itype, stype;
|
ctf_id_t itype = 0, stype = 0;
|
||||||
ctf_encoding_t encoding = {0};
|
ctf_encoding_t encoding = {0};
|
||||||
ctf_membinfo_t mi;
|
ctf_membinfo_t mi;
|
||||||
ssize_t ret;
|
ssize_t ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user