Skip to content

Commit

Permalink
Fix loading of the ignore files stopping, if there is a duplicate name.
Browse files Browse the repository at this point in the history
When checking if the list was full (to stop further processing), the
loading code was using the is-duplicate return code from the
add...() function, rather then the list-is-full code.
  • Loading branch information
pjbroad committed Oct 8, 2024
1 parent 312ccc6 commit fa997f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ignore.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ void load_ignores_list(char * file_name)
ch = ignore_list_mem[i];
if (ch == '\n' || ch == '\r')
{
if (j > 0 && add_to_ignore_list(name, 0) == -1)
// ignore list full
if (j > 0 && add_to_ignore_list(name, 0) == -2)
// cannot add more as list is full
break;
j = 0;
i++;
Expand Down

0 comments on commit fa997f6

Please sign in to comment.