diff options
Diffstat (limited to 'ext/testcase.c')
-rw-r--r-- | ext/testcase.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/testcase.c b/ext/testcase.c index 8fb6d79..20b0c48 100644 --- a/ext/testcase.c +++ b/ext/testcase.c @@ -1473,15 +1473,16 @@ testcase_solverresult(Solver *solv, int resultflags) SolverRuleinfo rclass; Queue q; int i; + char *prefix; queue_init(&q); for (rid = 1; (rclass = solver_ruleclass(solv, rid)) != SOLVER_RULE_UNKNOWN; rid++) { - char *prefix = solv_dupjoin("rule ", testcase_rclass2str(rclass), " "); - prefix = solv_dupappend(prefix, testcase_ruleid(solv, rid), 0); solver_ruleliterals(solv, rid, &q); if (rclass == SOLVER_RULE_FEATURE && q.count == 1 && q.elements[0] == -SYSTEMSOLVABLE) continue; + prefix = solv_dupjoin("rule ", testcase_rclass2str(rclass), " "); + prefix = solv_dupappend(prefix, testcase_ruleid(solv, rid), 0); for (i = 0; i < q.count; i++) { Id p = q.elements[i]; |