diff options
author | 2017-02-17 21:38:19 +0100 | |
---|---|---|
committer | 2017-02-22 19:52:04 +0100 | |
commit | cd17ba51f5b25196c52afe5dfdd27c7dc8621cf4 (patch) | |
tree | 7ce3627269395604b384f8aede7ffaf57a7ec203 /scripts/qapi-commands.py | |
parent | Don't check qobject_type() before qobject_to_qdict() (diff) | |
download | qemu-cd17ba51f5b25196c52afe5dfdd27c7dc8621cf4.tar.xz qemu-cd17ba51f5b25196c52afe5dfdd27c7dc8621cf4.zip |
tests: Don't check qobject_type() before qobject_to_qlist()
qobject_to_qlist(obj) returns NULL when obj isn't a QList. Check
that instead of qobject_type(obj) == QTYPE_QLIST.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1487363905-9480-9-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions