diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2024-07-15 21:05:43 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2024-08-01 14:30:21 +0100 |
commit | ab612a67a2d6bd2559835159a733f06f90d6b6f8 (patch) | |
tree | 17995af3226e3b5ff83327fe510c967dd3e166aa | |
parent | e307cadccd0d09128464a774678dbefd5af0a79d (diff) | |
download | gdb-ab612a67a2d6bd2559835159a733f06f90d6b6f8.zip gdb-ab612a67a2d6bd2559835159a733f06f90d6b6f8.tar.gz gdb-ab612a67a2d6bd2559835159a733f06f90d6b6f8.tar.bz2 |
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.
-rw-r--r-- | libctf/ctf-open.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libctf/ctf-open.c b/libctf/ctf-open.c index fd6d36e..ab97cde 100644 --- a/libctf/ctf-open.c +++ b/libctf/ctf-open.c @@ -1066,6 +1066,7 @@ init_static_types_internal (ctf_dict_t *fp, ctf_header_t *cth, continue; enum_err: + ctf_set_errno (fp, err); ctf_next_destroy (i_constants); ctf_next_destroy (i); return ctf_errno (fp); |