From fa997f6dea385730ddc5789c7b66f7ea7c0303cf Mon Sep 17 00:00:00 2001 From: Paul Broadhead Date: Tue, 8 Oct 2024 23:16:11 +0100 Subject: [PATCH] Fix loading of the ignore files stopping, if there is a duplicate name. 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. --- ignore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ignore.c b/ignore.c index bc1de2374..fa7bbf472 100644 --- a/ignore.c +++ b/ignore.c @@ -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++;