summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2002-11-20 15:17:17 +0100
committerunknown <serg@serg.mysql.com>2002-11-20 15:17:17 +0100
commitda6fc2821016a3e4dbba997af4b5a8fa4bb6fcb4 (patch)
tree021609d4dfdaa4e20d4556ce766de887214a6207 /myisam
parentd8eda713379befa0f9b9048d3d2d58f7f4c59d2d (diff)
downloadmariadb-git-da6fc2821016a3e4dbba997af4b5a8fa4bb6fcb4.tar.gz
bug in _ftb_strstr fixed :)
Diffstat (limited to 'myisam')
-rw-r--r--myisam/ft_boolean_search.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/myisam/ft_boolean_search.c b/myisam/ft_boolean_search.c
index a8fa011edf6..97c55c1d937 100644
--- a/myisam/ft_boolean_search.c
+++ b/myisam/ft_boolean_search.c
@@ -348,9 +348,9 @@ static int _ftb_strstr(const byte *s0, const byte *e0,
if (s0 >= e0)
return 0;
p=s1+1;
- while (s0 < e0 && p < e1 && cs->to_upper[(uint) (uchar) *s0++] ==
- cs->to_upper[(uint) (uchar) *p++])
- /* no-op */;
+ while (s0 < e0 && p < e1 && cs->to_upper[(uint) (uchar) *s0] ==
+ cs->to_upper[(uint) (uchar) *p])
+ s0++, p++;
if (p >= e1)
return 1;
}