summaryrefslogtreecommitdiffstats
path: root/RPM4
diff options
context:
space:
mode:
authortv <tv@971eb68f-4bfb-0310-8326-d2484c010a4c>2012-06-13 18:43:04 +0000
committertv <tv@971eb68f-4bfb-0310-8326-d2484c010a4c>2012-06-13 18:43:04 +0000
commite4c7f954ba0628f0e6b700800fd219860cb4af8e (patch)
tree1becfd89b9a1f7f3e452375c8728883293067ca8 /RPM4
parentf35a729e6d21461cbcb6f5ddb45c38778e271348 (diff)
downloadperl-RPM4-e4c7f954ba0628f0e6b700800fd219860cb4af8e.tar
perl-RPM4-e4c7f954ba0628f0e6b700800fd219860cb4af8e.tar.gz
perl-RPM4-e4c7f954ba0628f0e6b700800fd219860cb4af8e.tar.bz2
perl-RPM4-e4c7f954ba0628f0e6b700800fd219860cb4af8e.tar.xz
perl-RPM4-e4c7f954ba0628f0e6b700800fd219860cb4af8e.zip
(tag) simplify
git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@204 971eb68f-4bfb-0310-8326-d2484c010a4c
Diffstat (limited to 'RPM4')
-rw-r--r--RPM4/src/RPM4.xs9
1 files changed, 3 insertions, 6 deletions
diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs
index 3cb808c..96a0ab1 100644
--- a/RPM4/src/RPM4.xs
+++ b/RPM4/src/RPM4.xs
@@ -1142,15 +1142,12 @@ Header_tag(h, sv_tag)
EXTEND(SP, n);
rpmtdInit(&val);
- for (i = 0; i < n; i++) {
+ for (i = 0; i < n; i++)
mPUSHs(newSVpv(rpmtdNextString(&val), 0));
- }
}
break;
- case RPM_STRING_TYPE: {
- char *name = (char *) rpmtdGetString(&val);
- mPUSHs(newSVpv(name, 0));
- };
+ case RPM_STRING_TYPE:
+ mPUSHs(newSVpv(rpmtdGetString(&val), 0));
break;
case RPM_CHAR_TYPE:
case RPM_INT8_TYPE: