aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libctf/ctf-types.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libctf/ctf-types.c b/libctf/ctf-types.c
index b6bcdb3..42ca36b 100644
--- a/libctf/ctf-types.c
+++ b/libctf/ctf-types.c
@@ -1671,6 +1671,10 @@ ctf_type_conflicting (ctf_dict_t *fp, ctf_id_t type, const char **cuname)
ctf_dict_t *ofp = fp;
const ctf_type_t *tp;
+ /* The unimplemented / void type is never conflicting. */
+ if (type == 0)
+ return 0;
+
if ((type = ctf_type_resolve (fp, type)) == CTF_ERR)
return -1; /* errno is set for us. */