mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 06:25:19 +00: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);
|
ret->filter = g_strdup(net->filter);
|
||||||
|
|
||||||
if (!(ret->filterparams = virHashNew(virNWFilterVarValueHashFree)))
|
ret->filterparams = virHashNew(virNWFilterVarValueHashFree);
|
||||||
goto error;
|
|
||||||
|
|
||||||
if (net->filterparams &&
|
if (net->filterparams &&
|
||||||
virNWFilterHashTablePutAll(net->filterparams, ret->filterparams) < 0)
|
virNWFilterHashTablePutAll(net->filterparams, ret->filterparams) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user