mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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
|
static int
|
||||||
virDomainDefBootOrderPostParse(virDomainDef *def)
|
virDomainDefBootOrderPostParse(virDomainDef *def)
|
||||||
{
|
{
|
||||||
g_autoptr(GHashTable) bootHash = NULL;
|
g_autoptr(GHashTable) bootHash = virHashNew(NULL);
|
||||||
|
|
||||||
if (!(bootHash = virHashNew(NULL)))
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
if (virDomainDeviceInfoIterate(def, virDomainDefCollectBootOrder, bootHash) < 0)
|
if (virDomainDeviceInfoIterate(def, virDomainDefCollectBootOrder, bootHash) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user