libctf, types: ensure the emission of ECTF_NOPARENT
authorEgeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
Wed, 3 Jun 2020 16:36:51 +0000 (17:36 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 22 Jul 2020 17:01:51 +0000 (18:01 +0100)
commitb7190c821e529d7858cff7c2fcc57304a1d38d2b
treec60d7720d875b4f7938d67badc5d5e41ec613708
parentec388c16cd4217a64907e4e133d2102cc4fe608a
libctf, types: ensure the emission of ECTF_NOPARENT

ctf_variable_iter was returning a (positive!) error code rather than
setting the error in the passed-in ctf_file_t.

Reviewed-by: Nick Alcock <nick.alcock@oracle.com>
libctf/
* ctf-types.c (ctf_variable_iter): Fix error return.
libctf/ChangeLog
libctf/ctf-types.c