On 02/17/2017 02:38 PM, Markus Armbruster wrote:
> qobject_to_qbool(obj) returns NULL when obj isn't a QBool.  Check
> that instead of qobject_type(obj) == QTYPE_QBOOL.
> 
> Signed-off-by: Markus Armbruster <arm...@redhat.com>
> ---
>  tests/check-qjson.c                 | 24 ++++++------------------
>  tests/test-qobject-output-visitor.c | 12 +++++-------
>  2 files changed, 11 insertions(+), 25 deletions(-)
> 

Reviewed-by: Eric Blake <ebl...@redhat.com>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to