[libvirt] [PATCH] qemu_monitor_json: Don't check existence of "return" object

Ján Tomko jtomko at redhat.com
Mon Nov 21 14:15:13 UTC 2016


On Mon, Nov 21, 2016 at 10:51:29AM +0100, Jiri Denemark wrote:
>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 at redhat.com>
>---
> src/qemu/qemu_monitor_json.c | 160 ++++++++-----------------------------------
> 1 file changed, 30 insertions(+), 130 deletions(-)
>

ACK

Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20161121/5c7679cb/attachment-0001.sig>


More information about the libvir-list mailing list