diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/bs_badwords.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/bs_badwords.c b/src/core/bs_badwords.c index e91d3ea7a..8a37e9816 100644 --- a/src/core/bs_badwords.c +++ b/src/core/bs_badwords.c @@ -205,8 +205,8 @@ int do_badwords(User * u) } /* After reordering only the entries at the end could still be empty. * We ll free the places no longer in use... - Viper */ - for (i = ci->bwcount - 1; i >= 0; i--) { - if (ci->badwords[i].in_use) + for (int j = ci->bwcount - 1; j >= 0; j--) { + if (ci->badwords[j].in_use) break; ci->bwcount--; } |