aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-15 17:38:07 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-15 17:38:07 +0000
commitaac457f6ec226c216bbfd36189699d73aee0b7f3 (patch)
treefaae88ac127bb5221b363be715260ac0c59b5243
parent7d4ab1b1f12c436590f878889932ebe45c37aa10 (diff)
downloadperl-URPM-aac457f6ec226c216bbfd36189699d73aee0b7f3.tar
perl-URPM-aac457f6ec226c216bbfd36189699d73aee0b7f3.tar.gz
perl-URPM-aac457f6ec226c216bbfd36189699d73aee0b7f3.tar.bz2
perl-URPM-aac457f6ec226c216bbfd36189699d73aee0b7f3.tar.xz
perl-URPM-aac457f6ec226c216bbfd36189699d73aee0b7f3.zip
(Db_traverse_tag) simplify
-rw-r--r--URPM.xs4
1 files changed, 1 insertions, 3 deletions
diff --git a/URPM.xs b/URPM.xs
index a1d29d4..b856ec2 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2568,9 +2568,7 @@ Db_traverse_tag(db,tag,names,callback)
AV* names_av = (AV*)SvRV(names);
int len = av_len(names_av);
int i;
- rpmTag rpmtag;
-
- rpmtag = rpmtag_from_string(tag);
+ rpmTag rpmtag = rpmtag_from_string(tag);
for (i = 0; i <= len; ++i) {
STRLEN str_len;