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