From: Tim Wiederhake Date: Mon, 5 Jul 2021 14:04:59 +0000 (+0200) Subject: qemuMonitorGetPRManagerInfo: `virHashNew` cannot return NULL X-Git-Tag: v7.6.0-rc1~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df27180d49f05e31320d2493069e978333dbee85;p=thirdparty%2Flibvirt.git qemuMonitorGetPRManagerInfo: `virHashNew` cannot return NULL Signed-off-by: Tim Wiederhake Reviewed-by: Peter Krempa --- diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c index f66a3457c1..940eeab9a8 100644 --- a/src/qemu/qemu_monitor.c +++ b/src/qemu/qemu_monitor.c @@ -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;