From fa6aab80e1d36fa3c5ae6bcc67de8aa70556baf2 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 19 Feb 2021 22:27:22 +0100 Subject: [PATCH] Fix for infinite loop bug introduced in previous commit --- src/reports.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/reports.c b/src/reports.c index cd6a29e..44758b6 100644 --- a/src/reports.c +++ b/src/reports.c @@ -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; }