mirror of https://gitee.com/openkylin/libvirt.git
qemuMonitorJSONGetAllBlockJobInfo: `virHashNew` cannot return NULL
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
91fc0a36aa
commit
12ee3b35c6
src/qemu
|
@ -5089,8 +5089,7 @@ qemuMonitorJSONGetAllBlockJobInfo(qemuMonitor *mon,
|
|||
}
|
||||
|
||||
nr_results = virJSONValueArraySize(data);
|
||||
if (!(blockJobs = virHashNew(g_free)))
|
||||
goto cleanup;
|
||||
blockJobs = virHashNew(g_free);
|
||||
|
||||
for (i = 0; i < nr_results; i++) {
|
||||
virJSONValue *entry = virJSONValueArrayGet(data, i);
|
||||
|
|
Loading…
Reference in New Issue