Signed-off-by: Tim Wiederhake <twiederh(a)redhat.com>
---
src/conf/virnwfilterbindingdef.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/conf/virnwfilterbindingdef.c b/src/conf/virnwfilterbindingdef.c
index 98df1f750a..9704e1bebb 100644
--- a/src/conf/virnwfilterbindingdef.c
+++ b/src/conf/virnwfilterbindingdef.c
@@ -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;
--
2.31.1