Signed-off-by: Tim Wiederhake <twiederh(a)redhat.com>
---
tests/nwfilterxml2firewalltest.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/nwfilterxml2firewalltest.c b/tests/nwfilterxml2firewalltest.c
index bdfe858185..75a70e9972 100644
--- a/tests/nwfilterxml2firewalltest.c
+++ b/tests/nwfilterxml2firewalltest.c
@@ -208,8 +208,8 @@ virNWFilterRuleDefToRuleInst(virNWFilterDef *def,
ruleinst->chainPriority = def->chainPriority;
ruleinst->def = rule;
ruleinst->priority = rule->priority;
- if (!(ruleinst->vars = virHashNew(virNWFilterVarValueHashFree)))
- goto cleanup;
+ ruleinst->vars = virHashNew(virNWFilterVarValueHashFree);
+
if (virNWFilterHashTablePutAll(vars, ruleinst->vars) < 0)
goto cleanup;
--
2.31.1