diff options
author | 2017-02-17 21:38:21 +0100 | |
---|---|---|
committer | 2017-02-22 19:52:09 +0100 | |
commit | 0abfc4b885566eb41c3a4e1de5e2e105bdc062d9 (patch) | |
tree | 78148f230b948ffb4530620290e30d8e06aaf712 /scripts/qapi-commands.py | |
parent | tests: Don't check qobject_type() before qobject_to_qstring() (diff) | |
download | qemu-0abfc4b885566eb41c3a4e1de5e2e105bdc062d9.tar.xz qemu-0abfc4b885566eb41c3a4e1de5e2e105bdc062d9.zip |
tests: Don't check qobject_type() before qobject_to_qint()
qobject_to_qint(obj) returns NULL when obj isn't a QInt. Check
that instead of qobject_type(obj) == QTYPE_QINT.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1487363905-9480-11-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