diff options
author | unknown <serg@serg.mysql.com> | 2002-11-20 15:17:17 +0100 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2002-11-20 15:17:17 +0100 |
commit | da6fc2821016a3e4dbba997af4b5a8fa4bb6fcb4 (patch) | |
tree | 021609d4dfdaa4e20d4556ce766de887214a6207 /myisam/ft_boolean_search.c | |
parent | d8eda713379befa0f9b9048d3d2d58f7f4c59d2d (diff) | |
download | mariadb-git-da6fc2821016a3e4dbba997af4b5a8fa4bb6fcb4.tar.gz |
bug in _ftb_strstr fixed :)
Diffstat (limited to 'myisam/ft_boolean_search.c')
-rw-r--r-- | myisam/ft_boolean_search.c | 6 |
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; } |