1
0
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:
Tim Wiederhake 2021-07-06 10:07:39 +02:00
parent f7e30a49cc
commit 3f2dcd7f14

View File

@ -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;