goto exit;
rc = 0;
- provides = rpmteDS(p, RPMTAG_PROVIDENAME);
- provides = rpmdsInit(provides);
- if (provides != NULL)
+ provides = rpmdsInit(rpmteDS(p, RPMTAG_PROVIDENAME));
while (rpmdsNext(provides) >= 0) {
const char * Name;
*/
pi = rpmtsiInit(ts);
while ((p = rpmtsiNext(pi, TR_REMOVED)) != NULL) {
- rpmds provides;
+ rpmds provides = rpmdsInit(rpmteDS(p, RPMTAG_PROVIDENAME));
rpmfi fi;
/* FIX: rpmts{A,O} can return null. */
rpmteNEVR(p), rpmteA(p), rpmteO(p), rpmteColor(p));
rc = 0;
- provides = rpmteDS(p, RPMTAG_PROVIDENAME);
- provides = rpmdsInit(provides);
- if (provides != NULL)
while (rpmdsNext(provides) >= 0) {
const char * Name;