summaryrefslogtreecommitdiffstats
path: root/RPM4/src/RPM4.xs
diff options
context:
space:
mode:
Diffstat (limited to 'RPM4/src/RPM4.xs')
-rw-r--r--RPM4/src/RPM4.xs7
1 files changed, 2 insertions, 5 deletions
diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs
index 520e246..8d7d5b0 100644
--- a/RPM4/src/RPM4.xs
+++ b/RPM4/src/RPM4.xs
@@ -1541,15 +1541,12 @@ Ts_traverse(ts, callback = NULL, sv_tagname = NULL, sv_tagvalue = NULL, keylen =
tag = sv2dbquerytag(sv_tagname);
}
if (sv_tagvalue != NULL && SvOK(sv_tagvalue)) {
- switch (tag) {
- case RPMDBI_PACKAGES:
+ if (tag == RPMDBI_PACKAGES) {
i = SvIV(sv_tagvalue);
value = &i;
keylen = sizeof(i);
- break;
- default:
+ } else {
value = (void *) SvPV_nolen(sv_tagvalue);
- break;
}
}