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
@ -1856,11 +1859,11 @@ int print_datatables(struct configTag *ct, int arch) {
fprintf(fs,": _%s\n",provided->provider[i]->sourceheader->name); fprintf(fs,": _%s\n",provided->provider[i]->sourceheader->name);
} }
} else { } else {
fprintf_depstable_filtered_var(fd,provided->name); fprintf_depstable_filtered_var(fd,provided->name);
fprintf(fd,": "); fprintf(fd,": ");
fprintf(fd,"__missing_provider_for_"); fprintf(fd,"__missing_provider_for_");
fprintf_depstable_filtered_var(fd,provided->name); fprintf_depstable_filtered_var(fd,provided->name);
fprintf(fd,"\n"); fprintf(fd,"\n");
} }
provided = provided->next; provided = provided->next;
} }