Skip to content

Commit 0f79aa9

Browse files
libctf: Return CTF_ERR in ctf_type_resolve_unsliced PR 30836
In commit 998a4f5, 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 <[email protected]>
1 parent b6d3616 commit 0f79aa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libctf/ctf-types.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ ctf_type_resolve_unsliced (ctf_dict_t *fp, ctf_id_t type)
602602
const ctf_type_t *tp;
603603

604604
if ((type = ctf_type_resolve (fp, type)) == CTF_ERR)
605-
return -1;
605+
return CTF_ERR;
606606

607607
if ((tp = ctf_lookup_by_id (&fp, type)) == NULL)
608608
return CTF_ERR; /* errno is set for us. */

0 commit comments

Comments
 (0)