Re: [PATCH] qemu_monitor_json: Properly check GetArray return value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/14/2017 12:38 PM, Jiri Denemark wrote:
> Commit 2a8d40f4ec refactored qemuMonitorJSONGetCPUx86Data and replaced
> virJSONValueObjectGet(reply, "return") with virJSONValueObjectGetArray.
> While the former is guaranteed to always return non-NULL pointer the
> latter may return NULL if the returned JSON object is not an array.
> 
> Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
> ---
>  src/qemu/qemu_monitor_json.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)

ACK

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux