]> git.proxmox.com Git - mirror_qemu.git/commit
Don't check qobject_type() before qobject_to_qdict()
authorMarkus Armbruster <armbru@redhat.com>
Fri, 17 Feb 2017 20:38:18 +0000 (21:38 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 22 Feb 2017 18:52:01 +0000 (19:52 +0100)
commitca6b6e1e68ac44b2e8895da10dd1c80dc03d08b7
tree3e820280a3eb45a68186eaec2f46fba2b1fe63b8
parent4b32e11a59e34c5cf570c1fd102a78d9351e71f5
Don't check qobject_type() before qobject_to_qdict()

qobject_to_qdict(obj) returns NULL when obj isn't a QDict.  Check
that instead of qobject_type(obj) == QTYPE_QDICT.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1487363905-9480-8-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block.c
hw/pci/pcie_aer.c
monitor.c
qapi/qmp-dispatch.c
tests/check-qdict.c
tests/test-qobject-output-visitor.c