mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user