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

2017-02-14 Thread Michal Privoznik
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

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

2017-02-14 Thread Jiri Denemark
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: