aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs3
1 files changed, 1 insertions, 2 deletions
diff --git a/URPM.xs b/URPM.xs
index 3b2e6ee..638a90f 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2597,9 +2597,8 @@ Trans_traverse(trans, callback)
CODE:
mi = rpmtsInitIterator(trans->ts, RPMDBI_PACKAGES, NULL, 0);
while ((h = rpmdbNextIterator(mi))) {
- if (SvROK(callback)) {
+ if (SvROK(callback))
_run_cb_while_traversing(callback, h, G_DISCARD);
- }
++c;
}
rpmdbFreeIterator(mi);