aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--URPM.xs8
1 files changed, 2 insertions, 6 deletions
diff --git a/URPM.xs b/URPM.xs
index 4e90a1b..b823ca9 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -935,12 +935,8 @@ update_provides_files(const URPM__Package pkg, HV *provides) {
struct rpmtd_s td;
if (headerGet(pkg->h, RPMTAG_OLDFILENAMES, &td, HEADERGET_DEFAULT)) {
- for (i = 0; i < rpmtdCount(&td); i++) {
- const char *s = rpmtdNextString(&td);
- len = strlen(s);
-
- update_hash_entry(provides, s, len, 0, 0, pkg);
- }
+ for (i = 0; i < rpmtdCount(&td); i++)
+ update_hash_entry(provides, rpmtdNextString(&td), 0, 0, 0, pkg);
rpmtdFreeData(&td);
}