mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-05 13:17:51 +03:00
virNWFilterBindingDefForNet: 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
e9109f3135
commit
7426512799
@ -59,8 +59,7 @@ virNWFilterBindingDefForNet(const char *vmname,
|
||||
|
||||
ret->filter = g_strdup(net->filter);
|
||||
|
||||
if (!(ret->filterparams = virHashNew(virNWFilterVarValueHashFree)))
|
||||
goto error;
|
||||
ret->filterparams = virHashNew(virNWFilterVarValueHashFree);
|
||||
|
||||
if (net->filterparams &&
|
||||
virNWFilterHashTablePutAll(net->filterparams, ret->filterparams) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user