diff options
author | Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> | 2023-10-17 20:36:50 +0200 |
---|---|---|
committer | Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> | 2023-10-18 09:39:59 +0200 |
commit | 0f79aa900f3a69780dde1e934ffe21e30236934e (patch) | |
tree | 53327707633d23bc3c1c9faf95430d525943fb95 /libctf | |
parent | b6d3616fb3c0f0ce176b8d916f12fd65f3d9b318 (diff) | |
download | fsf-binutils-gdb-0f79aa900f3a69780dde1e934ffe21e30236934e.zip fsf-binutils-gdb-0f79aa900f3a69780dde1e934ffe21e30236934e.tar.gz fsf-binutils-gdb-0f79aa900f3a69780dde1e934ffe21e30236934e.tar.bz2 |
libctf: Return CTF_ERR in ctf_type_resolve_unsliced PR 30836
In commit 998a4f589d68503f79695f180fdf1742eeb0a39d, all but one return
statement was updated to return the error proper value. This commit
rectifies that missed return statement.
libctf/
ctf-types.c (ctf_type_resolve_unsliced): Return CTF_ERR on error.
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Diffstat (limited to 'libctf')
-rw-r--r-- | libctf/ctf-types.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libctf/ctf-types.c b/libctf/ctf-types.c index 694d6ea..4d3c01d 100644 --- a/libctf/ctf-types.c +++ b/libctf/ctf-types.c @@ -602,7 +602,7 @@ ctf_type_resolve_unsliced (ctf_dict_t *fp, ctf_id_t type) const ctf_type_t *tp; if ((type = ctf_type_resolve (fp, type)) == CTF_ERR) - return -1; + return CTF_ERR; if ((tp = ctf_lookup_by_id (&fp, type)) == NULL) return CTF_ERR; /* errno is set for us. */ |