mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 04:41:20 +00:00
qemuMonitorGetPRManagerInfo: 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
99292979e3
commit
df27180d49
@ -4522,8 +4522,7 @@ qemuMonitorGetPRManagerInfo(qemuMonitor *mon,
|
||||
|
||||
QEMU_CHECK_MONITOR(mon);
|
||||
|
||||
if (!(info = virHashNew(g_free)))
|
||||
goto cleanup;
|
||||
info = virHashNew(g_free);
|
||||
|
||||
if (qemuMonitorJSONGetPRManagerInfo(mon, info) < 0)
|
||||
goto cleanup;
|
||||
|
Loading…
Reference in New Issue
Block a user