aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-01-20 21:07:49 +0000
committerThierry Vignaud <tv@mageia.org>2013-01-20 21:07:49 +0000
commit96beb8d1223d76de97b620973a35e744692e4e7b (patch)
tree30e803fa0bb24341363238b9aa3af9331f049c8a /URPM.xs
parenta856d78fd3f7d006398d6a147cb1fcb2cc7cca8d (diff)
downloadperl-URPM-96beb8d1223d76de97b620973a35e744692e4e7b.tar
perl-URPM-96beb8d1223d76de97b620973a35e744692e4e7b.tar.gz
perl-URPM-96beb8d1223d76de97b620973a35e744692e4e7b.tar.bz2
perl-URPM-96beb8d1223d76de97b620973a35e744692e4e7b.tar.xz
perl-URPM-96beb8d1223d76de97b620973a35e744692e4e7b.zip
(update_provides_files) simplify: let callee compute the length
Diffstat (limited to 'URPM.xs')
-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);
}