summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-01-13 02:13:39 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-01-13 02:13:39 +0000
commitc767dcac5f641d2d04e494c33760eacab4e32627 (patch)
treed322ff63e5adf9be0b2104da0f442b47d0f8e860 /src
parentf7088139a0ab4a5d6ad09df54f8a61c92c6f79a7 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/core/bs_badwords.c4
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--;
}