aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libctf/ctf-open.c1
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);