- Anybody calling rpmTagGetType() with RPMDBI_PACKAGES deserves to
wait for the search to figure there's no such thing and return
RPM_NULL_TYPE like with the switch case. Eliminates another
enum comparison mismatch warning.
if (_rpmTags.byValue == NULL)
xx = tagLoadIndex(&_rpmTags.byValue, &_rpmTags.byValueSize, tagCmpValue);
-
- switch (tag) {
- case RPMDBI_PACKAGES:
- break;
- default:
- if (_rpmTags.byValue == NULL)
- break;
+ if (_rpmTags.byValue) {
l = 0;
u = _rpmTags.byValueSize;
while (l < u) {
return (rpmTagType)(t->type | t->retype);
}
}
- break;
}
return RPM_NULL_TYPE;
}