mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-05 13:17:51 +03:00
virNWFilterBindingDefCopy: 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
f7e30a49cc
commit
3f2dcd7f14
@ -65,8 +65,7 @@ virNWFilterBindingDefCopy(virNWFilterBindingDef *src)
|
||||
|
||||
ret->filter = g_strdup(src->filter);
|
||||
|
||||
if (!(ret->filterparams = virHashNew(virNWFilterVarValueHashFree)))
|
||||
goto error;
|
||||
ret->filterparams = virHashNew(virNWFilterVarValueHashFree);
|
||||
|
||||
if (virNWFilterHashTablePutAll(src->filterparams, ret->filterparams) < 0)
|
||||
goto error;
|
||||
|
Loading…
Reference in New Issue
Block a user