diff options
Diffstat (limited to 'libctf/ctf-open.c')
-rw-r--r-- | libctf/ctf-open.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libctf/ctf-open.c b/libctf/ctf-open.c index 449728f..8c08667 100644 --- a/libctf/ctf-open.c +++ b/libctf/ctf-open.c @@ -1426,6 +1426,8 @@ ctf_bufopen (const ctf_sect_t *ctfsect, const ctf_sect_t *symsect, libctf_init_debug(); + ctf_set_open_errno (errp, 0); + if ((ctfsect == NULL) || ((symsect != NULL) && (strsect == NULL))) return (ctf_set_open_errno (errp, EINVAL)); |