mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-14 21:28:57 +08:00
libctf, open: Fix enum error handling path
This new error-handling path was not properly initializing the fp's errno. libctf/ * ctf-open.c (init_static_types_internal): Set errno properly.
This commit is contained in:
@@ -1066,6 +1066,7 @@ init_static_types_internal (ctf_dict_t *fp, ctf_header_t *cth,
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
enum_err:
|
enum_err:
|
||||||
|
ctf_set_errno (fp, err);
|
||||||
ctf_next_destroy (i_constants);
|
ctf_next_destroy (i_constants);
|
||||||
ctf_next_destroy (i);
|
ctf_next_destroy (i);
|
||||||
return ctf_errno (fp);
|
return ctf_errno (fp);
|
||||||
|
|||||||
Reference in New Issue
Block a user