mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-04-01 20:05:19 +00:00
qemuBlockNodeNamesDetect: 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
ae06bc9cfe
commit
26c09438e2
@ -365,10 +365,7 @@ qemuBlockNodeNamesDetect(virQEMUDriver *driver,
|
||||
GHashTable *
|
||||
qemuBlockGetNodeData(virJSONValue *data)
|
||||
{
|
||||
g_autoptr(GHashTable) nodedata = NULL;
|
||||
|
||||
if (!(nodedata = virHashNew(virJSONValueHashFree)))
|
||||
return NULL;
|
||||
g_autoptr(GHashTable) nodedata = virHashNew(virJSONValueHashFree);
|
||||
|
||||
if (virJSONValueArrayForeachSteal(data,
|
||||
qemuBlockNamedNodesArrayToHash, nodedata) < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user