mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
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
@ -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…
x
Reference in New Issue
Block a user