'ruleinst' is NULLed by VIR_APPEND_ELEMENT Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx> --- tests/nwfilterxml2firewalltest.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/nwfilterxml2firewalltest.c b/tests/nwfilterxml2firewalltest.c index 33648a5077..7fefd3ce75 100644 --- a/tests/nwfilterxml2firewalltest.c +++ b/tests/nwfilterxml2firewalltest.c @@ -214,7 +214,6 @@ virNWFilterRuleDefToRuleInst(virNWFilterDef *def, goto cleanup; VIR_APPEND_ELEMENT(inst->rules, inst->nrules, ruleinst); - ruleinst = NULL; ret = 0; cleanup: -- 2.31.1