distromatic.c: fix a creash when checking build provider versions

This commit is contained in:
Silvan Calarco 2013-07-13 20:01:25 +02:00
parent 59e25e737f
commit 6661afaeb8

View File

@ -713,13 +713,10 @@ resolveFirstLevelSourceDependencies(struct configTag *ct, int archidx)
}
if (provided->numbuildproviders > 0) {
if (strcmp(currsourceheader->require[i]->version,"") &&
(currsourceheader->require[i]->flags & (RPMSENSE_LESS+RPMSENSE_GREATER+RPMSENSE_EQUAL))) {
found = 0;
for (j = 0; j < provided->numbuildproviders; j++) {
for (j = 0; j < provided->numversions; j++) {
if (!strcmp(provided->version[j],"")) {
/* provider with no version; assume ok */
found = 1;