mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 03:21:19 +00:00
virNWFilterCreateVarsFrom: 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
3b559a7778
commit
a6853d691b
@ -200,8 +200,6 @@ virNWFilterCreateVarsFrom(GHashTable *vars1,
|
|||||||
GHashTable *vars2)
|
GHashTable *vars2)
|
||||||
{
|
{
|
||||||
GHashTable *res = virHashNew(virNWFilterVarValueHashFree);
|
GHashTable *res = virHashNew(virNWFilterVarValueHashFree);
|
||||||
if (!res)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
if (virNWFilterHashTablePutAll(vars1, res) < 0)
|
if (virNWFilterHashTablePutAll(vars1, res) < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
Loading…
Reference in New Issue
Block a user