diff options
author | Thierry Vignaud <tv@mageia.org> | 2013-01-20 21:07:49 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2013-01-20 21:07:49 +0000 |
commit | 96beb8d1223d76de97b620973a35e744692e4e7b (patch) | |
tree | 30e803fa0bb24341363238b9aa3af9331f049c8a /URPM.xs | |
parent | a856d78fd3f7d006398d6a147cb1fcb2cc7cca8d (diff) | |
download | perl-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.xs | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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); } |