mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
virDomainDefBootOrderPostParse: 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
f6252cf6b0
commit
c94a217e5c
@ -5935,10 +5935,7 @@ virDomainDefCollectBootOrder(virDomainDef *def G_GNUC_UNUSED,
|
||||
static int
|
||||
virDomainDefBootOrderPostParse(virDomainDef *def)
|
||||
{
|
||||
g_autoptr(GHashTable) bootHash = NULL;
|
||||
|
||||
if (!(bootHash = virHashNew(NULL)))
|
||||
return -1;
|
||||
g_autoptr(GHashTable) bootHash = virHashNew(NULL);
|
||||
|
||||
if (virDomainDeviceInfoIterate(def, virDomainDefCollectBootOrder, bootHash) < 0)
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user