From c767dcac5f641d2d04e494c33760eacab4e32627 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Tue, 13 Jan 2009 02:13:39 +0000 Subject: [PATCH] Fix bug 992, cause was an unsigned value of 0 having 1 subtracted from it. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1921 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/bs_badwords.c | 4 ++-- 1 file 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--; }