]> xenbits.xensource.com Git - libvirt.git/commit
qemu_monitor_json: Don't check existence of "return" object
authorJiri Denemark <jdenemar@redhat.com>
Sun, 20 Nov 2016 23:10:06 +0000 (00:10 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 21 Nov 2016 15:14:52 +0000 (16:14 +0100)
commit2e0d6cdec4113c9ff941c0402a89d4151a1a51e6
treea3aed9d58c10d5160f8df7b12125706e74805c36
parent0a3f91997209e566020ab30339977029ad6b3215
qemu_monitor_json: Don't check existence of "return" object

Whenever qemuMonitorJSONCheckError returns 0, the "return" object is
guaranteed to exist. Thus virJSONValueObjectGetObject will never fail to
get it. On the other hand, virJSONValueObjectGetArray may fail since the
"return" object may not be an array.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_monitor_json.c