summaryrefslogtreecommitdiffstats
path: root/RPM4/src
diff options
context:
space:
mode:
Diffstat (limited to 'RPM4/src')
-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: