Fix for infinite loop bug introduced in previous commit

This commit is contained in:
Silvan Calarco 2021-02-19 22:27:22 +01:00
parent 28ace51262
commit fa6aab80e1

View File

@ -1794,7 +1794,10 @@ int print_datatables(struct configTag *ct, int arch) {
logmsg(LOG_DEBUG,"writing deps files (1)"); logmsg(LOG_DEBUG,"writing deps files (1)");
struct providedList* provided = ct->providedlist_idx[arch][0]; struct providedList* provided = ct->providedlist_idx[arch][0];
while (provided) { while (provided) {
if (!strncmp("debuginfo(build-id)", provided->name, 20)) continue; if (!strncmp("debuginfo(build-id)", provided->name, 20)) {
provided = provided->next;
continue;
}
nonobsoletednumproviders=0; nonobsoletednumproviders=0;
for (i = 0; i < provided->numproviders; i++) { for (i = 0; i < provided->numproviders; i++) {
// skip duplicated provides // skip duplicated provides