diff options
author | tv <tv@971eb68f-4bfb-0310-8326-d2484c010a4c> | 2012-06-13 18:43:04 +0000 |
---|---|---|
committer | tv <tv@971eb68f-4bfb-0310-8326-d2484c010a4c> | 2012-06-13 18:43:04 +0000 |
commit | e4c7f954ba0628f0e6b700800fd219860cb4af8e (patch) | |
tree | 1becfd89b9a1f7f3e452375c8728883293067ca8 /RPM4/src | |
parent | f35a729e6d21461cbcb6f5ddb45c38778e271348 (diff) | |
download | perl-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/src')
-rw-r--r-- | RPM4/src/RPM4.xs | 9 |
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: |